Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <png.h>
#include "glut_support.h"
#include "gfx/sprite.h"
#include "vs_globals.h"
#include "gfx/aux_texture.h"
#include "config_xml.h"
#include "gfx/vsimage.h"
#include "vsfilesystem.h"
#include "gldrv/gl_globals.h"
Go to the source code of this file.
Macros | |
#define | isspAce(chr) |
Functions | |
void | ShowColor (float x, float y, float wid, float hei, float red, float green, float blue, float alpha) |
float | word_length (const char *str) |
void | ShowText (float x, float y, float wid, int size, const char *str, int no_end) |
float | WidthOfChar (char chr) |
void | SetSoftwareMousePosition (int x, int y) |
void | StartGUIFrame (GFXBOOL clr) |
void | DrawGlutMouse (int mousex, int mousey, VSSprite *spr) |
void | ConditionalCursorDraw (bool) |
void | EndGUIFrame (MousePointerStyle pointerStyle) |
Variables | |
float | colors [] = {1, 1, 1, 1} |
static int | mmx = 0 |
static int | mmy = 0 |
#define isspAce | ( | chr) |
Definition at line 30 of file glut_support.cpp.
Referenced by word_length().
void ConditionalCursorDraw | ( | bool | ) |
Definition at line 143 of file star_system.cpp.
Referenced by GameStarSystem::Draw(), WindowManager::draw(), and EndGUIFrame().
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.
float word_length | ( | const char * | str) |
float colors[] = {1, 1, 1, 1} |
Definition at line 34 of file glut_support.cpp.
Referenced by decode_color_block(), NavigationSystem::DrawMission(), and GFXVertexList::Init().
|
static |
Definition at line 136 of file glut_support.cpp.
Referenced by EndGUIFrame(), and SetSoftwareMousePosition().
|
static |
Definition at line 137 of file glut_support.cpp.
Referenced by EndGUIFrame(), and SetSoftwareMousePosition().