Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glut_support.h
Go to the documentation of this file.
1 /***************************************************************************
2 * glut_support.h - description
3 * --------------------------
4 * begin : December 28, 2001
5 * copyright : (C) 2001 by David Ranger
6 * email : ussreliant@users.sourceforge.net
7 ***************************************************************************/
8 
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * any later version. *
15 * *
16 ***************************************************************************/
17 
18 #ifndef GLUT_SUPPORT_H
19 #define GLUT_SUPPORT_H
20 
21 /* If you have functions that perform the same operation, but use different parameters,
22  * It may be best if you replace the following functions with wrappers to your own functions
23  */
24 #include <stdio.h>
25 #include <vector>
26 #include "gfxlib.h"
27 using std::vector;
28 
33 };
34 
35 void ShowColor( float x, float y, float wid, float hei, float red, float green, float blue, float alpha );
36 void ShowText( float x, float y, float wid, int size, const char *string, int no_end );
37 float WidthOfChar( char chr );
38 void SetSoftwareMousePosition( int x, int y );
39 void StartGUIFrame( GFXBOOL clear = GFXTRUE );
40 void DrawGlutMouse( int mousex, int mousey, class VSSprite*spr );
41 void EndGUIFrame( MousePointerStyle pointerStyle );
42 extern int HAS_ALPHA;
43 
44 #endif //GLUT_SUPPORT_H
45