The ITextureMap represents a texture map object in memory.
virtual signed int ITextureMap::AskInterface |
( |
const BGUID * |
piid, |
|
|
IRoot ** |
ppr |
|
) |
| |
|
pure virtual |
Queries this object to see if the interface piid is supported and returns the result in ppr.
- Parameters
-
piid | The BGUID of the requested interface. |
ppr | The address of an IRoot pointer which will receive the new interface. |
- Returns
- S_OK if the interface is supported. E_FAIL if it is not.
Implements IRoot.
virtual signed int ITextureMap::DecRef |
( |
| ) |
|
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
virtual signed int ITextureMap::GetBitsPerPixel |
( |
unsigned int * |
pBPP | ) |
|
|
pure virtual |
Returns bit depth (bits per pixel) of the texture. Currently all textures are internally converted to 32 bpp RGBA.
virtual signed int ITextureMap::GetBuffer |
( |
unsigned char ** |
pBuffer | ) |
|
|
pure virtual |
Returns a pointer to the raw image data.
virtual signed int ITextureMap::GetDimensions |
( |
unsigned int * |
pWidth, |
|
|
unsigned int * |
pHeight |
|
) |
| |
|
pure virtual |
Returns the width and height of the texture in pixels.
virtual signed int ITextureMap::IncRef |
( |
| ) |
|
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
virtual signed int ITextureMap::LoadTextureMap |
( |
char * |
fileName | ) |
|
|
pure virtual |