Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
sample0.h
Go to the documentation of this file.
1 // Sample0.h
3 // Declares the elements not related to the article
4 //
6 
7 #ifndef SAMPLE0_H
8 #define SAMPLE0_H
9 
10  #define DEBUG
11 
12  #include "GL\Screen_GL.h"
13  #include "Windows\Timer_Windows.h"
14 
15  #define SCREENWIDTH 500
16  #define SCREENHEIGHT 500
17  #define SCREENPOSX 80
18  #define SCREENPOSY 80
19 
20  //Processes basic screen operations like:
21  // - Switching between 2D and 3D coordinate systems
22  // - Printing text (and a specialized function for printing FPS)
23  // - Initiating the GL Screen
24  // - Managing textures (loading, registering and resetting)
26 
27  //Very simple timer class used to count elapsed time since the
28  //last timer calls
31 
32  //Variable to manage the state of the demo
33  bool Running = false;
34 
35  //hold coordinates to the OpenGL logo
38  //holds the texture index of the OpenGL logo
40 
41 #endif
Definition: Frm_Timer.h:15
Definition: Screen_GL.h:15
static Frm::Timer * GetInstance(void)
GETINSTANCE //////////////////////////////////////.
Definition: Timer_Windows.cpp:16
unsigned long int uint32
Definition: Frm_types.h:15
Screen_GL SampleScreen
Definition: sample0.h:25
uint32 Elapsed
Definition: sample0.h:30
uint32 LogoID
Definition: sample0.h:39
Frm::Vertex GLLogoQuad[4]
Definition: sample0.h:36
Frm::Timer * SampleTimer
Definition: sample0.h:29
Frm::TCoord GLLogoTexCoords[4]
Definition: sample0.h:37
bool Running
Definition: sample0.h:33