blaze
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Textures

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...
 

Detailed Description

Texture binding and options.

Enumeration Type Documentation

Defines texture filtering modes.

See also
BLZ_SetTextureFiltering
Enumerator
NEAREST 
LINEAR 

Defines texture wrapping modes.

See also
BLZ_SetTextureWrap
Enumerator
CLAMP_TO_EDGE 
REPEAT 
MIRRORED_REPEAT 

Function Documentation

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!

Parameters
textureTexture that should be bound, or NULL to unbind it
slotTexture 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.