bool isRenderTarget() const
Check whether the texture is a render target.
ITexture(const std::string &name, E_TEXTURE_TYPE type)
constructor
E_DRIVER_TYPE getDriverType() const
Get driver type of texture.
E_PIXEL_FORMAT OriginalColorFormat
bool hasMipMaps() const
Check whether the texture has MipMaps.
const glm::uvec2 & getOriginalSize() const
Get original size of the texture.
E_PIXEL_FORMAT getColorFormat() const
Get the color format of texture.
virtual void unlock()=0
Unlock function. Must be called after a lock() to the texture.
virtual void * lock(E_TEXTURE_LOCK_MODE mode=E_TEXTURE_LOCK_MODE::READ_WRITE, std::uint32_t layer=0)=0
Lock function.
void updateSource(E_TEXTURE_SOURCE source)
Used internally by the engine to update Source status on IVideoDriver::getTexture calls.
E_TEXTURE_SOURCE getSource() const
Check where the last IVideoDriver::getTexture found this texture.
Interface of a Video Driver dependent Texture.
E_PIXEL_FORMAT ColorFormat
const std::string & getName() const
Get name of texture (in most cases this is the filename)
virtual void regenerateMipMapLevels(void *data=0, std::uint32_t layer=0)=0
Regenerates the mip map levels of the texture.
E_TEXTURE_TYPE getType() const
Returns the type of texture.
bool hasAlpha() const
Returns if the texture has an alpha channel.
const glm::uvec2 & getSize() const
Get dimension (=size) of the texture.
std::uint32_t getPitch() const
Get pitch of the main texture (in bytes).