Renderer/Texture: Remove Image constructor
This commit is contained in:
parent
16d0345502
commit
db78c9c948
|
|
@ -217,6 +217,7 @@ Nazara Engine:
|
|||
- SegmentCollider2D: Add support for neighbors (aka "ghost vertices"), allowing to prevent seams collisions
|
||||
- ⚠ OBJLoader flips UV by default, fixing a lot of models UV
|
||||
- On Windows, Thread::Set(Current)Name now uses `SetThreadDescription` Win32 function if possible instead of triggering a debugger exception. MinGW builds will use this if available too.
|
||||
- ⚠ Removed Texture(const Image\*) constructor, use Texture::LoadFromImage instead
|
||||
|
||||
Nazara Development Kit:
|
||||
- Added ImageWidget (#139)
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ namespace Nz
|
|||
public:
|
||||
Texture() = default;
|
||||
Texture(ImageType type, PixelFormatType format, unsigned int width, unsigned int height, unsigned int depth = 1, UInt8 levelCount = 1);
|
||||
explicit Texture(const Image* image);
|
||||
Texture(const Texture&) = delete;
|
||||
Texture(Texture&&) = delete;
|
||||
~Texture();
|
||||
|
|
|
|||
|
|
@ -54,12 +54,6 @@ namespace Nz
|
|||
Create(type, format, width, height, depth, levelCount);
|
||||
}
|
||||
|
||||
Texture::Texture(const Image* image)
|
||||
{
|
||||
ErrorFlags flags(ErrorFlag_ThrowException);
|
||||
LoadFromImage(image);
|
||||
}
|
||||
|
||||
Texture::~Texture()
|
||||
{
|
||||
OnTextureRelease(this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue