5 #ifndef __I_TEXTURE_H_INCLUDED__ 6 #define __I_TEXTURE_H_INCLUDED__ 132 virtual void unlock() = 0;
virtual void regenerateMipMapLevels(void *mipmapData=0)=0
Regenerates the mip map levels of the texture.
The default mode. Texture can be read and written to.
ECOLOR_FORMAT
An enum for the color format of textures used by the Irrlicht Engine.
Everything in the Irrlicht Engine can be found in this namespace.
E_TEXTURE_LOCK_MODE
Enum for the mode for texture locking. Read-Only, write-only or read/write.
E_TEXTURE_CREATION_FLAG getTextureFormatFromFlags(u32 flags)
Helper function, helps to get the desired texture creation format from the flags. ...
virtual void * lock(E_TEXTURE_LOCK_MODE mode=ETLM_READ_WRITE, u32 mipmapLevel=0)=0
Lock function.
virtual const core::dimension2d< u32 > & getOriginalSize() const =0
Get original size of the texture.
Read only. The texture is downloaded, but not uploaded again.
virtual bool hasAlpha() const
Returns if the texture has an alpha channel.
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
virtual E_DRIVER_TYPE getDriverType() const =0
Get driver type of texture.
Used in places where we identify objects by a filename, but don't actually work with the real filenam...
virtual u32 getPitch() const =0
Get pitch of the main texture (in bytes).
unsigned int u32
32 bit unsigned variable.
16 bit color format used by the software driver.
virtual bool isRenderTarget() const
Check whether the texture is a render target.
virtual bool hasMipMaps() const
Check whether the texture has MipMaps.
virtual ECOLOR_FORMAT getColorFormat() const =0
Get the color format of texture.
E_TEXTURE_CREATION_FLAG
Enumeration flags telling the video driver in which format textures should be created.
const io::SNamedPath & getName() const
Get name of texture (in most cases this is the filename)
Interface of a Video Driver dependent Texture.
Base class of most objects of the Irrlicht Engine.
ITexture(const io::path &name)
constructor
Default 32 bit color format. 8 bits are used for every component: red, green, blue and alpha...
Write only. The texture is not downloaded and might be uninitialised.
Allow the Driver to use Non-Power-2-Textures.
virtual const core::dimension2d< u32 > & getSize() const =0
Get dimension (=size) of the texture.
virtual void unlock()=0
Unlock function. Must be called after a lock() to the texture.