blaze
|
Texture binding and options. More...
Enumerations | |
enum | BLZ_TextureFilter { NEAREST, LINEAR } |
Defines texture filtering modes. More... | |
enum | BLZ_TextureWrap { CLAMP_TO_EDGE, REPEAT, MIRRORED_REPEAT } |
Defines texture wrapping modes. More... | |
Functions | |
BLZAPIENTRY int BLZAPICALL | BLZ_BindTexture (struct BLZ_Texture *texture, int slot) |
Binds the specified texture to the specified slot number. More... | |
BLZAPIENTRY int BLZAPICALL | BLZ_GetMaxTextureSlots () |
Returns the maximum count of available texture slots which can be used simultaneously for BLZ_BindTexture texture binding. More... | |
BLZAPIENTRY int BLZAPICALL | BLZ_SetTextureFiltering (struct BLZ_Texture *texture, enum BLZ_TextureFilter minification, enum BLZ_TextureFilter magnification) |
Sets the texture filtering mode. More... | |
BLZAPIENTRY int BLZAPICALL | BLZ_SetTextureWrap (struct BLZ_Texture *texture, enum BLZ_TextureWrap x, enum BLZ_TextureWrap y) |
Sets the texture wrapping mode. More... | |
Texture binding and options.
enum BLZ_TextureFilter |
enum BLZ_TextureWrap |
Defines texture wrapping modes.
Enumerator | |
---|---|
CLAMP_TO_EDGE | |
REPEAT | |
MIRRORED_REPEAT |
BLZAPIENTRY int BLZAPICALL BLZ_BindTexture | ( | struct BLZ_Texture * | texture, |
int | slot | ||
) |
Binds the specified texture to the specified slot number.
If the first (0, zero) slot is specified, overrides currently bound texture for BLZ_Present, BLZ_PresentStatic and BLZ_DrawImmediate calls. Note - the sprite position and size will still be calculated using the texture passed previously, not the overriding one!
texture | Texture that should be bound, or NULL to unbind it |
slot | Texture slot (from 0 to BLZ_GetMaxTextureSlots) |
BLZAPIENTRY int BLZAPICALL BLZ_GetMaxTextureSlots | ( | ) |
Returns the maximum count of available texture slots which can be used simultaneously for BLZ_BindTexture texture binding.
BLZAPIENTRY int BLZAPICALL BLZ_SetTextureFiltering | ( | struct BLZ_Texture * | texture, |
enum BLZ_TextureFilter | minification, | ||
enum BLZ_TextureFilter | magnification | ||
) |
Sets the texture filtering mode.
BLZAPIENTRY int BLZAPICALL BLZ_SetTextureWrap | ( | struct BLZ_Texture * | texture, |
enum BLZ_TextureWrap | x, | ||
enum BLZ_TextureWrap | y | ||
) |
Sets the texture wrapping mode.