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

Global state functions. More...

Functions

BLZAPIENTRY void BLZAPICALL BLZ_Clear ()
 Clears the screen with the specified color. More...
 
BLZAPIENTRY char *BLZAPICALL BLZ_GetLastError ()
 Returns a pointer to error string, if any. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_Load (glGetProcAddress loader)
 Loads the OpenGL functions using the specified loader and initializes the library. More...
 
BLZAPIENTRY void BLZAPICALL BLZ_SetBlendMode (const struct BLZ_BlendFunc func)
 Sets the currently used blend function. More...
 
BLZAPIENTRY void BLZAPICALL BLZ_SetClearColor (struct BLZ_Vector4 color)
 Sets the background clear color. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_SetViewport (int w, int h)
 Sets the viewport size in pixels. More...
 

Detailed Description

Global state functions.

Function Documentation

BLZAPIENTRY void BLZAPICALL BLZ_Clear ( )

Clears the screen with the specified color.

See also
BLZ_SetClearColor
BLZAPIENTRY char* BLZAPICALL BLZ_GetLastError ( )

Returns a pointer to error string, if any.

Returns
String if there is an error, NULL if there is no error present
BLZAPIENTRY int BLZAPICALL BLZ_Load ( glGetProcAddress  loader)

Loads the OpenGL functions using the specified loader and initializes the library.

Parameters
loaderOpenGL function loader which accepts an 'const char *name'. If you're using SDL, pass SDL_GL_GetProcAddress as the value.
Returns
Non-zero on success, zero on failure
BLZAPIENTRY void BLZAPICALL BLZ_SetBlendMode ( const struct BLZ_BlendFunc  func)

Sets the currently used blend function.

Note - it will be applied when a sprite will be actually drawn using BLZ_Present, BLZ_PresentStatic or BLZ_DrawImmediate functions.

See also
BLZ_BlendFunc
BLZ_Present
BLZ_PresentStatic
BLZ_DrawImmediate
BLZAPIENTRY void BLZAPICALL BLZ_SetClearColor ( struct BLZ_Vector4  color)

Sets the background clear color.

See also
BLZ_Clear
BLZAPIENTRY int BLZAPICALL BLZ_SetViewport ( int  w,
int  h 
)

Sets the viewport size in pixels.

Used in sprite position calculations.