testshell/framework/globals.h File Reference

Declarations of global variables. More...

#include <GL/glew.h>
#include "vec3.h"
#include "camera.h"
#include "timer.h"
#include "mesh.h"
#include "shader.h"

Variables

GLfloat sunPosition [4]
GLfloat sunDirection [3]
GLfloat sunColor [4]
GLfloat sunAmbColor [4]
GLuint sunLightSource
float sunAngle
float windVelocity [2]
float windDir
float windSpeed
float waterColor [3]
GLfloat cameraPosition [4]
GLfloat cameraDirection [4]
GLfloat cameraUpVector [4]
GLfloat zoomFactor
GLfloat fovY
GLfloat fovRatio
GLfloat zNear
GLfloat zFar
float waveAmpFactor
Timer timer
float t
float dt
float daytime
int lodRes
int lodVis
Mesh groundMesh
Shader groundShader
Texture2d groundNoiseTexture
Texture2d groundHeightTexture
Texture2d groundTexture
Texture2d skyTexture
Texture2d skyCloudTexture
Shader skyShader
float skyHeight
float skyOffset
Texture2d boatSideTexture
Texture2d boatDeckTexture
Texture2d boatTopTexture
GLuint polygonMode
int windowID
int windowWidth
int windowHeight
Texture2d helpTexture
Camera camera
float moveSpeed
float turnSpeed
float zoomSpeed
int keyboardStrafe
int keyboardForward
int keyboardYaw
int keyboardRoll
int keyboardPitch
int keyboardZoom
int keyboardElevate
float sunSpeed
float waterHorizon
int keyboardMoveSun
float windMoveSpeed
int keyboardMoveWind
int keyboardTurnWind
bool keyboardDrawWater
bool keyboardDrawSky
bool keyboardDrawTerrain
bool keyboardDrawBoat
bool keyboardLook
bool keyboardHelp
bool keyboardParameters
bool keyboardFPS
bool keyboardAxis
bool keyboardWind
bool keyboardLight


Detailed Description

Declarations of global variables.


Variable Documentation

Texture2d boatDeckTexture

Texture for the deck of the boat

Texture2d boatSideTexture

Texture for the side of the boat

Texture2d boatTopTexture

Texture for the top of the boat

Camera camera

GLfloat cameraDirection[4]

Camera direction in world coordinates

GLfloat cameraPosition[4]

Camera position in world coordinates

GLfloat cameraUpVector[4]

Camera up-vector in world coordinates

float daytime

Time of day [0 1] -> 00:00-24:00.

float dt

Time elapsed since last frame to use in animations

GLfloat fovRatio

The aspect ratio of the field of view (x/y)

GLfloat fovY

The field-of-view angle in the y direction

Texture2d groundHeightTexture

Height texture for the ground

Mesh groundMesh

Mesh for the ground

Texture2d groundNoiseTexture

Texture for the ground

Shader groundShader

Shader for the ground

Texture2d groundTexture

Texture for the ground

Texture2d helpTexture

Texture for the help menu

bool keyboardAxis

Show axis

bool keyboardDrawBoat

bool keyboardDrawSky

bool keyboardDrawTerrain

bool keyboardDrawWater

int keyboardElevate

Up: 1, down: -1, stop: 0

int keyboardForward

Camera forward move: 1, stop: 0, backwards: -1

bool keyboardFPS

Show time and FPS

bool keyboardHelp

Show help menu

bool keyboardLight

Show light direction

bool keyboardLook

Camera look at frustum

int keyboardMoveSun

Earlier: 1, Later: -1, stop: 0

int keyboardMoveWind

Less wind: -1, More wind: 1, No change: 0

bool keyboardParameters

Show parameters

int keyboardPitch

Camera pitch down: -1, stop: 0, up: 1

int keyboardRoll

Camera roll left: -1, stop: 0, right: 1

int keyboardStrafe

Camera strafe left: -1, stop: 0, right: 1

int keyboardTurnWind

CW: -1, CCW: 1, No change: 0

bool keyboardWind

Show wind direction

int keyboardYaw

Camera yaw left: -1, stop: 0, right: 1

int keyboardZoom

zoom in: 1, zoom out: -1, don't zoom: 0

int lodRes

Level of detail for grid

int lodVis

Level of detail for visualisation shader

float moveSpeed

Speed for movement of the camera

GLuint polygonMode

Variable for drawing wirefram or solid

Texture2d skyCloudTexture

Texture for the clouds

float skyHeight

Help variable for skyShader

float skyOffset

Help variable for skyShader

Shader skyShader

Shader for colorizing the sky

Texture2d skyTexture

Texture for the sky

GLfloat sunAmbColor[4]

Ambient color of the sun

float sunAngle

Sun angle [0 pi]

GLfloat sunColor[4]

Diffuse and specular color of the sun

GLfloat sunDirection[3]

Direction of the sunlight in world coordinates

GLuint sunLightSource

Light source for the sun

GLfloat sunPosition[4]

Position of the sun in world coordinates

float sunSpeed

Turnspeed for the sun

float t

Time variable to use in animations

Timer timer

Timer for the system

float turnSpeed

Angular velocity for camera turning in deg/s

float waterColor[3]

Color of the water

float waterHorizon

Distance to the water horizon

float waveAmpFactor

Controls the amplitude of the waves

float windDir

Wind direction

float windMoveSpeed

Speed for changing wind velocity

int windowHeight

Height of the Glut window

int windowID

ID to the Glut window

int windowWidth

Width of the Glut window

float windSpeed

Wind speed

float windVelocity[2]

Wind velocity

GLfloat zFar

The distance from the camera to the far clipping plane

GLfloat zNear

The distance from the camera to the near clipping plane

GLfloat zoomFactor

The amount of zooming

float zoomSpeed

Zoom speed for camera 1.0 means that full zoom in or out from initial zoom takes 1 second


Generated on Thu May 17 20:28:03 2007 for Ocean View by  doxygen 1.5.2