#include <GL/glew.h>
#include "vec3.h"
#include "camera.h"
#include "timer.h"
#include "mesh.h"
#include "shader.h"
Texture for the deck of the boat
Texture for the side of the boat
Texture for the top of the boat
| 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
Height texture for the ground
Mesh for the ground
Texture for the ground
Shader for the ground
Texture for the ground
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
Texture for the clouds
| float skyHeight |
Help variable for skyShader
| float skyOffset |
Help variable for skyShader
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
| 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
1.5.2