render.h
Data Structures |
struct | RENDERQUEUEPTR |
Defines |
#define | RCOLOR(r, g, b, a) al_map_rgba(r, g, b, a) |
#define | RDEFAULT al_map_rgba(255, 255, 255, 255) |
Typedefs |
typedef void(* | RENDER_CALLBACK )(ALLEGRO_BITMAP *, float, float, int, ALLEGRO_COLOR) |
Functions |
RENDERQUEUEPTR | get_first_element_from_render_queue (void) |
RENDERQUEUEPTR | set_first_element_in_render_queue (RENDERQUEUEPTR *newfirst) |
RENDERQUEUEPTR | add_element_to_render_queue (ALLEGRO_BITMAP *image, float x, float y, int nflags, ALLEGRO_COLOR blendcol, RENDER_CALLBACK rcallback) |
RENDERQUEUEPTR | remove_element_from_render_queue (RENDERQUEUEPTR *currentptr) |
void | render (void) |
_Bool | empty_render_queue (RENDERQUEUEPTR rfirstptr) |
void | render_mouse_cursor (ALLEGRO_BITMAP *cursor) |
Detailed Description
Routines to queue objects in a list and draw them on screen in the order they arrived in the queue
Define Documentation
#define RCOLOR |
( |
r, |
|
|
g, |
|
|
b, |
|
|
a |
|
) |
al_map_rgba(r, g, b, a) |
#define RDEFAULT al_map_rgba(255, 255, 255, 255) |
Typedef Documentation
typedef void(* RENDER_CALLBACK)(ALLEGRO_BITMAP *, float, float, int, ALLEGRO_COLOR) |
Function Documentation
RENDERQUEUEPTR add_element_to_render_queue |
( |
ALLEGRO_BITMAP * |
image, |
|
|
float |
x, |
|
|
float |
y, |
|
|
int |
nflags, |
|
|
ALLEGRO_COLOR |
blendcol, |
|
|
RENDER_CALLBACK |
rcallback | |
|
) |
| | |
_Bool empty_render_queue |
( |
RENDERQUEUEPTR |
rfirstptr |
) |
|
RENDERQUEUEPTR get_first_element_from_render_queue |
( |
void |
|
) |
|
RENDERQUEUEPTR remove_element_from_render_queue |
( |
RENDERQUEUEPTR * |
currentptr |
) |
|
void render_mouse_cursor |
( |
ALLEGRO_BITMAP * |
cursor |
) |
|
RENDERQUEUEPTR set_first_element_in_render_queue |
( |
RENDERQUEUEPTR * |
newfirst |
) |
|