testshell/framework/globals.cpp File Reference

Declarations of global variables. More...

#include "globals.h"

Variables

GLfloat sunPosition [4]
GLfloat sunDirection [3]
GLfloat sunColor [4]
GLfloat sunAmbColor [4] = {0.4f, 0.4f, 0.3f}
GLuint sunLightSource = GL_LIGHT0
float sunAngle = 3.1415927f/2.0f
float windVelocity [2] = {1.0f,0.0f}
float windDir = 0.0f
float windSpeed = 10.0f
float waterColor [3] = {0.00f, 0.20f, 0.50f}
GLfloat cameraPosition [4]
GLfloat cameraDirection [4]
GLfloat cameraUpVector [4]
GLfloat zoomFactor
GLfloat fovY
GLfloat fovRatio
GLfloat zNear
GLfloat zFar
float waveAmpFactor = 1.0
Timer timer
float t
float dt
float daytime = 0.25
int lodRes = 3
int lodVis = 3
Mesh groundMesh
Shader groundShader
Texture2d groundTexture
Texture2d groundHeightTexture
Texture2d groundNoiseTexture
Texture2d skyTexture
Texture2d skyCloudTexture
Shader skyShader
float skyHeight
float skyOffset
Texture2d boatSideTexture
Texture2d boatDeckTexture
Texture2d boatTopTexture
GLuint polygonMode = GL_FILL
int windowID = 0
int windowWidth = 1024
int windowHeight = 768
Texture2d helpTexture
Camera camera
float moveSpeed
float turnSpeed = 90.0f
float zoomSpeed = 1.0f
int keyboardStrafe = 0
int keyboardForward = 0
int keyboardYaw = 0
int keyboardRoll = 0
int keyboardPitch = 0
int keyboardZoom = 0
int keyboardElevate = 0
float sunSpeed = 45.0f
float waterHorizon = 1000.f
int keyboardMoveSun = 0
float windMoveSpeed = 2.0f
int keyboardMoveWind = 0
int keyboardTurnWind = 0
bool keyboardDrawWater = true
bool keyboardDrawSky = true
bool keyboardDrawTerrain = true
bool keyboardDrawBoat = false
bool keyboardLook = false
bool keyboardHelp = false
bool keyboardParameters = false
bool keyboardFPS = true
bool keyboardAxis = false
bool keyboardWind = false
bool keyboardLight = false


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 = 0.25

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 = false

Show axis

bool keyboardDrawBoat = false

bool keyboardDrawSky = true

bool keyboardDrawTerrain = true

bool keyboardDrawWater = true

int keyboardElevate = 0

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

int keyboardForward = 0

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

bool keyboardFPS = true

Show time and FPS

bool keyboardHelp = false

Show help menu

bool keyboardLight = false

Show light direction

bool keyboardLook = false

Camera look at frustum

int keyboardMoveSun = 0

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

int keyboardMoveWind = 0

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

bool keyboardParameters = false

Show parameters

int keyboardPitch = 0

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

int keyboardRoll = 0

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

int keyboardStrafe = 0

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

int keyboardTurnWind = 0

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

bool keyboardWind = false

Show wind direction

int keyboardYaw = 0

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

int keyboardZoom = 0

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

int lodRes = 3

Level of detail for grid

int lodVis = 3

Level of detail for visualisation shader

float moveSpeed

Speed for movement of the camera

GLuint polygonMode = GL_FILL

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] = {0.4f, 0.4f, 0.3f}

Ambient color of the sun

float sunAngle = 3.1415927f/2.0f

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 = GL_LIGHT0

Light source for the sun

GLfloat sunPosition[4]

Position of the sun in world coordinates

float sunSpeed = 45.0f

Turnspeed for the sun

float t

Time variable to use in animations

Timer timer

Timer for the system

float turnSpeed = 90.0f

Angular velocity for camera turning in deg/s

float waterColor[3] = {0.00f, 0.20f, 0.50f}

Color of the water

float waterHorizon = 1000.f

Distance to the water horizon

float waveAmpFactor = 1.0

Controls the amplitude of the waves

float windDir = 0.0f

Wind direction

float windMoveSpeed = 2.0f

Speed for changing wind velocity

int windowHeight = 768

Height of the Glut window

int windowID = 0

ID to the Glut window

int windowWidth = 1024

Width of the Glut window

float windSpeed = 10.0f

Wind speed

float windVelocity[2] = {1.0f,0.0f}

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 = 1.0f

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