5 #ifndef __I_TEXTURE_H_INCLUDED__ 6 #define __I_TEXTURE_H_INCLUDED__ 216 virtual void unlock() = 0;
E_DRIVER_TYPE getDriverType() const
Get driver type of texture.
const core::dimension2d< u32 > & getSize() const
Get dimension (=size) of the texture.
ECOLOR_FORMAT getColorFormat() const
Get the color format of texture.
The default mode. Texture can be read and written to.
64 bit format using 16 bits for the red, green, blue and alpha channels.
ECOLOR_FORMAT ColorFormat
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
ECOLOR_FORMAT OriginalColorFormat
E_TEXTURE_SOURCE
Where did the last IVideoDriver::getTexture call find this texture.
Allow the driver to keep a copy of the texture in memory.
bool isRenderTarget() const
Check whether the texture is a render target.
ECOLOR_FORMAT
An enum for the color format of textures used by the Irrlicht Engine.
E_TEXTURE_TYPE
Enumeration describing the type of ITexture.
GLuint const GLchar * name
E_TEXTURE_TYPE getType() const
Returns the type of texture.
core::dimension2d< u32 > OriginalSize
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.
void updateSource(E_TEXTURE_SOURCE source)
Used internally by the engine to update Source status on IVideoDriver::getTexture calls.
Texture has been found in cache.
ECOLOR_FORMAT getOriginalColorFormat() const
Get the original color format.
Read only. The texture is downloaded, but not uploaded again.
u32 getPitch() const
Get pitch of the main texture (in bytes).
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Null driver, useful for applications to run the engine without visualization.
Used in places where we identify objects by a filename, but don't actually work with the real filenam...
GLenum GLuint GLint GLint layer
Enable automatic updating mip maps when the base texture changes.
128 bit format using 32 bits for the red, green, blue and alpha channels.
unsigned int u32
32 bit unsigned variable.
16 bit color format used by the software driver.
Flip left-bottom origin rendertarget textures upside-down.
E_TEXTURE_LOCK_FLAGS
Additional bitflags for ITexture::lock() call.
virtual void * lock(E_TEXTURE_LOCK_MODE mode=ETLM_READ_WRITE, u32 mipmapLevel=0, u32 layer=0, E_TEXTURE_LOCK_FLAGS lockFlags=ETLF_FLIP_Y_UP_RTT)=0
Lock function.
GLsizei GLsizei GLchar * source
IVideoDriver::getTexture was never called (texture created otherwise)
bool hasMipMaps() const
Check whether the texture has MipMaps.
ITexture(const io::path &name, E_TEXTURE_TYPE type)
constructor
E_TEXTURE_SOURCE getSource() const
Check where the last IVideoDriver::getTexture found this texture.
const core::dimension2d< u32 > & getOriginalSize() const
Get original size of the texture.
core::dimension2d< u32 > Size
E_TEXTURE_CREATION_FLAG
Enumeration flags used to tell the video driver with setTextureCreationFlag in which format textures ...
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.
GLuint GLuint GLsizei GLenum type
virtual void regenerateMipMapLevels(void *data=0, u32 layer=0)=0
Regenerates the mip map levels of the texture.
Write only. The texture is not downloaded and might be uninitialized.
Allow the Driver to use Non-Power-2-Textures.
bool hasAlpha() const
Returns if the texture has an alpha channel.
virtual void unlock()=0
Unlock function. Must be called after a lock() to the texture.
Texture had to be loaded.