Changeset 3020 in orxonox.OLD for orxonox/branches/sound/hud/hud.h
- Timestamp:
- Nov 29, 2004, 1:04:28 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/hud/hud.h
r2974 r3020 2 2 #define HUD_H 3 3 4 #include <stdlib.h> 5 #include <stdio.h> 6 #include <stdarg.h> 7 #include <string.h> 8 #include <GL/gl.h> 9 #include <GL/glu.h> 10 #include "SDL.h" 11 12 #define SCREEN_WIDTH 640 13 #define SCREEN_HEIGHT 480 14 #define SCREEN_BPP 16 15 4 16 class Hud { 5 6 17 public: 18 typedef struct { 19 GLubyte *imageData; // Image Data 20 GLuint bpp; // Image bits per pixel. 21 GLuint width; // Image width 22 GLuint height; // Image height 23 GLuint texID; // Texture ID 24 } TextureImage; 7 25 Hud (); 8 26 ~Hud (); 9 27 bool LoadTGA(TextureImage *texture, char *filename); 28 GLvoid BuildFont(GLvoid); 29 GLvoid KillFont(GLvoid); 30 GLvoid glPrint(GLint x, GLint y, int set, const char *fmt, ...); 31 void Resize(int width, int height); 32 int InitGL(); 33 void handleKeyPress(SDL_keysym *keysym); 34 void DrawGLScene(); 35 int main( int argc, char **argv ); 36 SDL_Surface* surface; 37 int scroll; 38 int maxtokens; 39 int swidth; 40 int sheight; 41 int scroller; 42 GLuint base; 43 TextureImage textures[1]; 10 44 }; 11 45 46 12 47 #endif
Note: See TracChangeset
for help on using the changeset viewer.