The interface for common texture handling.
More...
#include <gfxlibinterfaces.h>
|
| virtual | ~ITexture () |
| | virtual destructor to ensure proper cleanup.
|
| |
| virtual tResult | Release ()=0 |
| | The Function releases the Texture.
|
| |
| virtual tResult | SetMode (tInt nMode)=0 |
| | Set the Mode shown in tTextureMode.
|
| |
|
virtual tVoid | MakeCurrent ()=0 |
| | Sets this texture as the current texture.
|
| |
| virtual tResult | Copy (IImage *pSource)=0 |
| | Fills the texture using a IImage.
|
| |
| virtual tInt | GetWidth () const=0 |
| | Gets the width of a texture (in pixel).
|
| |
| virtual tInt | GetHeight () const=0 |
| | Gets the height of a texture (in pixel).
|
| |
| virtual tInt | GetBitsPerPixel () const=0 |
| | Gets the number of bits per line of a texture.
|
| |
| virtual tInt | GetPhysicalWidth () const=0 |
| | Gets the physical width of the texture (in byte).
|
| |
| virtual tInt | GetPhysicalHeight () const=0 |
| | Gets the physical height of the texture (in byte).
|
| |
The interface for common texture handling.
Definition at line 131 of file gfxlibinterfaces.h.
◆ tTextureMode
The enumeration shows the texture modes.
| Enumerator |
|---|
| MODE_BilinearFiltered | bi linear filtered.
|
| MODE_NearestPixel | nearest pixel mode.
|
Definition at line 135 of file gfxlibinterfaces.h.
◆ ~ITexture()
◆ Copy()
| virtual tResult Copy |
( |
IImage * | pSource | ) |
|
|
pure virtual |
Fills the texture using a IImage.
- Parameters
-
- Returns
- The standard result code.
◆ GetBitsPerPixel()
| virtual tInt GetBitsPerPixel |
( |
| ) |
const |
|
pure virtual |
Gets the number of bits per line of a texture.
- Returns
- The /// Gets the height of a texture.
◆ GetHeight()
| virtual tInt GetHeight |
( |
| ) |
const |
|
pure virtual |
Gets the height of a texture (in pixel).
- Returns
- The height of the Texture.
◆ GetPhysicalHeight()
| virtual tInt GetPhysicalHeight |
( |
| ) |
const |
|
pure virtual |
Gets the physical height of the texture (in byte).
- Returns
- physical height a texture.
◆ GetPhysicalWidth()
| virtual tInt GetPhysicalWidth |
( |
| ) |
const |
|
pure virtual |
Gets the physical width of the texture (in byte).
- Returns
- physical width a texture.
◆ GetWidth()
| virtual tInt GetWidth |
( |
| ) |
const |
|
pure virtual |
Gets the width of a texture (in pixel).
- Returns
- The width of the Texture.
◆ Release()
| virtual tResult Release |
( |
| ) |
|
|
pure virtual |
The Function releases the Texture.
- Returns
- The standard result code.
◆ SetMode()
| virtual tResult SetMode |
( |
tInt | nMode | ) |
|
|
pure virtual |
Set the Mode shown in tTextureMode.
- Parameters
-
- Returns
- The standard result code.