Mount Fuji Engine
0.8b
|
Data Structures | |
struct | MFTexture |
Represents a Fuji Texture. More... | |
Enumerations | |
enum | TextureFlags { TEX_AlphaMask = 0x3, TEX_PreMultipliedAlpha = MFBIT(2), TEX_Swizzled = MFBIT(3), TEX_RenderTarget = MFBIT(4), TEX_CopyMemory = MFBIT(8) } |
Texture flags. More... | |
Functions | |
MF_API MFTexture * | MFTexture_Create (const char *pName, bool generateMipChain=true) |
Create a texture. More... | |
MF_API MFTexture * | MFTexture_CreateDynamic (const char *pName, int width, int height, MFImageFormat format, uint32 flags=0) |
Create a dynamic texture. More... | |
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) |
Create a texture from raw data. More... | |
MF_API MFTexture * | MFTexture_ScaleFromRawData (const char *pName, void *pData, int sourceWidth, int sourceHeight, int texWidth, int texHeight, MFImageFormat format, MFScalingAlgorithm algorithm, uint32 flags=0, uint32 *pPalette=0) |
Create a scaled texture from raw data. More... | |
MF_API MFTexture * | MFTexture_CreateRenderTarget (const char *pName, int width, int height, MFImageFormat targetFormat=ImgFmt_SelectRenderTarget) |
Creates a render target texture. More... | |
MF_API int | MFTexture_Release (MFTexture *pTexture) |
Release an MFTexture instance. More... | |
MF_API MFTexture * | MFTexture_Find (const char *pName) |
Find an existing texture. More... | |
MF_API MFTexture * | MFTexture_CreateBlank (const char *pName, const MFVector &colour) |
Create a blank plain coloured texture. More... | |
MF_API bool | MFTexture_IsFormatAvailable (int format) |
Tests to see if an image format is available on the current platform. More... | |
MF_API void | MFTexture_GetTextureDimensions (const MFTexture *pTexture, int *pWidth, int *pHeight) |
Get the dimensions of a texture. More... | |