Made Texture constructor consistent
Former-commit-id: 92be798524a48cb979c09fa04558602bf3717391
This commit is contained in:
parent
1a5cf8cc0f
commit
dc3cfa40ec
|
|
@ -22,7 +22,7 @@ class NAZARA_API NzTexture : public NzResource, NzNonCopyable
|
|||
friend class NzShader;
|
||||
|
||||
public:
|
||||
NzTexture();
|
||||
NzTexture() = default;
|
||||
explicit NzTexture(const NzImage& image);
|
||||
~NzTexture();
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ class NAZARA_API NzTexture : public NzResource, NzNonCopyable
|
|||
NzRenderTexture* GetRenderTexture() const;
|
||||
void SetRenderTexture(NzRenderTexture* renderTexture);
|
||||
|
||||
NzTextureImpl* m_impl;
|
||||
NzTextureImpl* m_impl = nullptr;
|
||||
};
|
||||
|
||||
#endif // NAZARA_TEXTURE_HPP
|
||||
|
|
|
|||
|
|
@ -191,13 +191,7 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
NzTexture::NzTexture() :
|
||||
m_impl(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
NzTexture::NzTexture(const NzImage& image) :
|
||||
m_impl(nullptr)
|
||||
NzTexture::NzTexture(const NzImage& image)
|
||||
{
|
||||
LoadFromImage(image);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue