Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Enumerations | |
enum | MousePointerStyle { MOUSE_POINTER_NONE, MOUSE_POINTER_NORMAL, MOUSE_POINTER_HOVER } |
Functions | |
void | ShowColor (float x, float y, float wid, float hei, float red, float green, float blue, float alpha) |
void | ShowText (float x, float y, float wid, int size, const char *string, int no_end) |
float | WidthOfChar (char chr) |
void | SetSoftwareMousePosition (int x, int y) |
void | StartGUIFrame (GFXBOOL clear=GFXTRUE) |
void | DrawGlutMouse (int mousex, int mousey, class VSSprite *spr) |
void | EndGUIFrame (MousePointerStyle pointerStyle) |
Variables | |
int | HAS_ALPHA |
enum MousePointerStyle |
Enumerator | |
---|---|
MOUSE_POINTER_NONE | |
MOUSE_POINTER_NORMAL | |
MOUSE_POINTER_HOVER |
Definition at line 29 of file glut_support.h.
Definition at line 162 of file glut_support.cpp.
References DEPTHTEST, VSSprite::Draw(), g_game, VSSprite::GetPosition(), VSSprite::GetSize(), GFXBlendMode(), GFXColor4f(), GFXDisable(), GFXEnable(), INVSRCALPHA, LIGHTING, VSSprite::SetPosition(), SRCALPHA, TEXTURE0, TEXTURE1, game_data_t::x_resolution, and game_data_t::y_resolution.
Referenced by EndGUIFrame().
void EndGUIFrame | ( | MousePointerStyle | pointerStyle) |
Definition at line 182 of file glut_support.cpp.
References BILINEAR, ConditionalCursorDraw(), CULLFACE, DrawGlutMouse(), GFXDisable(), GFXEnable(), GFXHudMode(), GFXTRUE, Texture::MakeActive(), mmx, mmy, MOUSE_POINTER_HOVER, MOUSE_POINTER_NONE, MOUSE_POINTER_NORMAL, NEAREST, TEXTURE2D, and TEXTURE_2D.
Referenced by BaseInterface::Draw().
Definition at line 138 of file glut_support.cpp.
References mmx, mmy, x, and y.
Referenced by BaseInterface::ActiveMouseOverWin(), and BaseInterface::PassiveMouseOverWin().
void ShowColor | ( | float | x, |
float | y, | ||
float | wid, | ||
float | hei, | ||
float | red, | ||
float | green, | ||
float | blue, | ||
float | alpha | ||
) |
Definition at line 76 of file glut_support.cpp.
References VegaConfig::getVariable(), gl_options, h, i, XMLSupport::parse_float(), gl_options_t::smooth_lines, vs_config, width, and word_length().
Referenced by Button::Refresh().
void StartGUIFrame | ( | GFXBOOL | clr) |
Starts a Frame of OpenGL with proper parameters and mouse
Definition at line 145 of file glut_support.cpp.
References CULLFACE, DEPTHTEST, DEPTHWRITE, GFXBlendMode(), GFXClear(), GFXColor4f(), GFXDisable(), GFXEnable(), GFXHudMode(), INVSRCALPHA, LIGHTING, SRCALPHA, TEXTURE0, and TEXTURE1.
Referenced by BaseInterface::Draw().
float WidthOfChar | ( | char | chr) |
Definition at line 129 of file glut_support.cpp.
References width.
int HAS_ALPHA |