0.44.0
|
#include <iTexture.h>
Inherits igor::iResource.
Public Member Functions | |
bool | useFallback () const |
int32 | getWidth () const |
int32 | getHeight () const |
int32 | getBpp () const |
uint32 | getMipMapLevels () const |
iColorFormat | getColorFormat () const |
bool | hasTransparency () const |
iTextureBuildMode | getBuildMode () const |
iTextureWrapMode | getWrapMode () const |
void | bind (uint32 textureUnit) |
Public Member Functions inherited from igor::iResource | |
virtual | ~iResource ()=default |
bool | isValid () const |
bool | isProcessed () const |
bool | isQuiet () const |
const iaString & | getSource () const |
const iaString | getInfo () const |
const iResourceID & | getID () const |
const iaString & | getAlias () const |
iResourceCacheMode | getCacheMode () const |
const iParameters & | getParameters () const |
const iaString & | getType () const |
Static Public Member Functions | |
static uint32 | calcMipMapLevels (int32 width, int32 height) |
Static Public Member Functions inherited from igor::iResource | |
static bool | extractID (const iParameters ¶meters, iResourceID &id, bool quiet=false) |
Friends | |
class | iTextureFactory |
Additional Inherited Members | |
Protected Member Functions inherited from igor::iResource | |
iResource (const iParameters ¶meters) | |
represents a texture resource
available parameters:
void igor::iTexture::bind | ( | uint32 | textureUnit | ) |
binds and activates texture to given texture unit
textureUnit | the given texture unit |
calculates mip map levels
width | the width of the texture |
height | the height of the texture |
int32 igor::iTexture::getBpp | ( | ) | const |
iTextureBuildMode igor::iTexture::getBuildMode | ( | ) | const |
iColorFormat igor::iTexture::getColorFormat | ( | ) | const |
int32 igor::iTexture::getHeight | ( | ) | const |
uint32 igor::iTexture::getMipMapLevels | ( | ) | const |
int32 igor::iTexture::getWidth | ( | ) | const |
iTextureWrapMode igor::iTexture::getWrapMode | ( | ) | const |
bool igor::iTexture::hasTransparency | ( | ) | const |
bool igor::iTexture::useFallback | ( | ) | const |
|
friend |