#include <GL/glew.h>
#include <math.h>
#include "ovglobals.h"
#include "ovalgebra.h"
Namespaces | |
namespace | OV |
Functions | |
void | OV::OVInitWater (float *camPos, float *camDir, float *camUp, float *time, float *dayTime, float *waterHorizon, float *windVelocity, float *waterColor, float *sunColor, int lodRes, int lodVis, GLuint *texCloudID, GLuint *texSkyID, GLuint *texGroundID, float *zoomFactor, float *fovY, float *fovRatio, float *zNear, float *zFar, int *windowWidth, int *windowHeight) |
Initialization of water module. | |
void | OV::OVDrawWater () |
Draws the water, requires previous call to OVInitWater. | |
void | OV::OVDrawProjectorFrustum () |
Draws the projector frustum. | |
float | OV::OVGetHeight (float x, float z) |
Access the water height. | |
void | OV::OVSetSunLightUnit (int lightUnitID) |
Sets OpenGL light unit used for the sun (eg GL_LIGHT0). | |
void | OV::OVSetSkyTexUnit (int texUnitID) |
Sets OpenGL texture unit used for the sky. | |
void | OV::OVSetResolutionLOD (int lodRes) |
Sets resolution level of detail. | |
void | OV::OVSetVisualizationLOD (int lodVis) |
Sets visualization level of detail. | |
void | OV::OVSetWaveAmpFactor (float factor) |
Sets additional amplification of wave amplitude. | |
void | OV::OVLoadShader (OVShader &shader, char *fileName) |
Loads water shaders. | |
void | OV::OVCalcWaveProp (int wave, OVv4 &waveProp, float scaleFactor, OVv2 waveVec) |
Calculates the waves amplitude, length, steepness, and speed. | |
void | OV::OVRotate (float lengthScale, OVv2 k, float angle, OVv2 &newK) |
Rotates a 2D vector by angle. | |
void | OV::OVCalcWaveProperties () |
Calculates the waves amplitude, length, steepness, and speed. |