Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

D:/Archiv/Projekte/OpenGL/quaxbomber03/main.cpp File Reference

#include "Quaxbomber.h"
#include "GameArea.h"
#include "GameTile.h"
#include "CoveredGameTileModel.h"
#include "UncoveredGameTileModel.h"
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glut.h>
#include <iostream>
#include <math.h>
#include <time.h>

Go to the source code of this file.

Functions

void display (void)
void initGL (void)
void keyEvent (unsigned char key, int x, int y)
int main (int argc, char **argv)
void reshape (int w, int h)
void setViewpoint (GLfloat radius, GLfloat rotX, GLfloat rotY)

Variables

GLint angleX = STARTANGLE
GLfloat angleY = STARTANGLE
GameAreagA


Function Documentation

void display void   ) 
 

Function to process the output to the screen.

Definition at line 59 of file main.cpp.

References angleX, angleY, CAMRADIUS, gA, GameArea::renderGameArea(), setViewpoint(), and TILESOFFSET.

Referenced by main().

void initGL void   ) 
 

Function to initialize the OpenGL environment.

Definition at line 88 of file main.cpp.

Referenced by main().

void keyEvent unsigned char  key,
int  x,
int  y
 

Function that handles the key events.

Definition at line 101 of file main.cpp.

References GameArea::dim, gA, and GameArea::uncoverTile().

Referenced by main().

int main int  argc,
char **  argv
 

Main function.

Definition at line 125 of file main.cpp.

References display(), gA, initGL(), keyEvent(), and reshape().

void reshape int  w,
int  h
 

Definition at line 71 of file main.cpp.

Referenced by main().

void setViewpoint GLfloat  radius,
GLfloat  rotX,
GLfloat  rotY
 

Function that sets the viewpoint to the scene to the given angle around the x and the y axis at a specified distance.

Parameters:
radius the specified distance to the scene
rotX the angle to rotate around the x axis
rotY the angle to rotate around the y axis

Definition at line 46 of file main.cpp.

Referenced by display().


Variable Documentation

GLint angleX = STARTANGLE
 

Definition at line 32 of file main.cpp.

Referenced by display().

GLfloat angleY = STARTANGLE
 

Definition at line 34 of file main.cpp.

Referenced by display().

GameArea* gA
 

Definition at line 36 of file main.cpp.

Referenced by display(), keyEvent(), and main().


Generated on Fri Apr 8 00:11:47 2005 for Quaxbomber by  doxygen 1.4.1