|
MF_API MFTexture* MFTexture_CreateFromRawData |
( |
const char * |
pName, |
|
|
void * |
pData, |
|
|
int |
width, |
|
|
int |
height, |
|
|
MFImageFormat |
format, |
|
|
uint32 |
flags = 0 , |
|
|
bool |
generateMipChain = true , |
|
|
uint32 * |
pPalette = 0 |
|
) |
| |
Creates a texture from a raw data buffer.
- Parameters
-
pName | Name of the texture being created. |
pData | Pointer to a buffer containing the image data |
width | Image width. |
height | Image height. |
format | Format of the image data being read. Only formats supported by the platform and ImgFmt_A8R8G8B8 can be used. |
flags | Texture creation flags. |
generateMipChain | If true, a mip-chain will be generated for the texture. |
pPalette | Pointer to palette data. Use NULL for non-paletted image formats. |
- Returns
- Pointer to an MFTexture structure representing the newly created texture.
- See Also
- MFTexture_Create(), MFTexture_Release(), MFTexture_GetPlatformAvailability(), MFImage_IsAvailableOnPlatform()
|