blaze
|
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... | |
Global state functions.
BLZAPIENTRY void BLZAPICALL BLZ_Clear | ( | ) |
Clears the screen with the specified color.
BLZAPIENTRY char* BLZAPICALL BLZ_GetLastError | ( | ) |
Returns a pointer to error string, if any.
BLZAPIENTRY int BLZAPICALL BLZ_Load | ( | glGetProcAddress | loader | ) |
Loads the OpenGL functions using the specified loader and initializes the library.
loader | OpenGL function loader which accepts an 'const char *name'. If you're using SDL, pass SDL_GL_GetProcAddress as the value. |
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.
BLZAPIENTRY void BLZAPICALL BLZ_SetClearColor | ( | struct BLZ_Vector4 | color | ) |
Sets the background clear color.
BLZAPIENTRY int BLZAPICALL BLZ_SetViewport | ( | int | w, |
int | h | ||
) |
Sets the viewport size in pixels.
Used in sprite position calculations.