[ Maverik Level 3 typedefs ]
MAV_transTextData
Summary
Transparent text data.
Syntax
typedef struct {
MAV_window *win;
char *s;
int col;
int font;
float x;
float y;
int justify;
} MAV_transTextData;
Description
When drawing a string in a transparent colour, the
mav_transparentTextManage function is called. This routine creates a
MAV_transTextData data structure for the string which contains all the
information necessary for it to be rendered at a later date: win is the window, s the string, col the colour, font the font, x its horizontal position, y its vertical position and justify the justification to use.mav_transparentTextManage maintains a list of these data structures
(which is reset at the start of each frame). mav_transparentTextRender is
called at the end of the frame to traverse this list and render the text. This ensures that the transparencies are
dealt with correctly.
This use of this feature is controlled by the option variable
mav_opt_trans and is initially disabled.
Back to the index page.