maug
Quick and dirty C mini-augmentation library.
|
Convenience macros for drawing a 2D overlay using transparent textures. More...
Macros | |
#define | retroglu_push_overlay(x, y, x_f, y_f, aspect_f) |
Push current projection modelview and prepare useful parameters for drawing a textured overlay. | |
#define | retroglu_whf(w, h, w_f, h_f, aspect_f) |
Convert width/height in pixels to proportional float values for OpenGL. | |
#define | retroglu_pop_overlay() |
Restore projection modelview previously pushed using retroglu_push(). | |
Convenience macros for drawing a 2D overlay using transparent textures.
#define retroglu_pop_overlay | ( | ) |
Restore projection modelview previously pushed using retroglu_push().
#define retroglu_push_overlay | ( | x, | |
y, | |||
x_f, | |||
y_f, | |||
aspect_f ) |
Push current projection modelview and prepare useful parameters for drawing a textured overlay.
#define retroglu_whf | ( | w, | |
h, | |||
w_f, | |||
h_f, | |||
aspect_f ) |
Convert width/height in pixels to proportional float values for OpenGL.
w | Width of an overlay in pixels (read-only int). |
h | Height of an overlay in pixels (read-only int). |
w_f | Float to assign proportional width of the overlay. |
h_f | Float to assign proportional height of the overlay. |