Added Texture1D(Image*) and Texture3D(Image*) constructors
This commit is contained in:
@@ -31,6 +31,16 @@ Texture3D::Texture3D():
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Texture3D::Texture3D(Image* image):
|
||||
_textureWidth(0),
|
||||
_textureHeight(0),
|
||||
_textureDepth(0),
|
||||
_numMipmapLevels(0)
|
||||
{
|
||||
setImage(image);
|
||||
}
|
||||
|
||||
Texture3D::Texture3D(const Texture3D& text,const CopyOp& copyop):
|
||||
Texture(text,copyop),
|
||||
_image(copyop(text._image.get())),
|
||||
|
||||
Reference in New Issue
Block a user