Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
testClothSim.cpp File Reference

Classes

struct  stClothVertex
 
class  Cloth
 

Macros

#define WINDOW_NAME   "Cloth Test"
 
#define WINDOW_CLASS   "UPGCLASS"
 
#define WINDOW_WIDTH   800
 
#define WINDOW_HEIGHT   600
 
#define WINDOW_FULLSCREEN   0
 

Functions

void DemoResize (int width, int height)
 
bool DemoInitialize (Ult::RenderParams &params)
 
void DemoUpdate ()
 
void DemoRender ()
 
void DemoShutdown ()
 
int main ()
 

Variables

Cloth gCloth
 
Ult::ModelData gObject
 
float gSpherePos [3] = {0,-2,0}
 
float gSphereRadius = 3.0f
 
Ult::ShaderHandle gShader
 
Ult::ParameterHandle gLightPos
 
Ult::ParameterHandle gLightCol
 
Ult::PhysicsSpace g3dSpace
 
float gLastTime = 0.0f
 
float gCurrentTime = 0.0f
 
int gXRot = 0
 
int gOldXRot = 0
 
int gYRot = 0
 
int gOldYRot = 0
 
Ult::OpenGLRenderer gRender
 
bool gQuitDemo = false
 

Macro Definition Documentation

◆ WINDOW_CLASS

#define WINDOW_CLASS   "UPGCLASS"

◆ WINDOW_FULLSCREEN

#define WINDOW_FULLSCREEN   0

◆ WINDOW_HEIGHT

#define WINDOW_HEIGHT   600

◆ WINDOW_NAME

#define WINDOW_NAME   "Cloth Test"

◆ WINDOW_WIDTH

#define WINDOW_WIDTH   800

Function Documentation

◆ DemoInitialize()

bool DemoInitialize ( Ult::RenderParams & params)

◆ DemoRender()

void DemoRender ( )

◆ DemoResize()

void DemoResize ( int width,
int height )

◆ DemoShutdown()

void DemoShutdown ( )

◆ DemoUpdate()

void DemoUpdate ( )

◆ main()

int main ( )

Variable Documentation

◆ g3dSpace

◆ gCloth

Cloth gCloth

◆ gCurrentTime

float gCurrentTime = 0.0f

◆ gLastTime

float gLastTime = 0.0f

◆ gLightCol

◆ gLightPos

◆ gObject

Ult::ModelData gObject

◆ gOldXRot

int gOldXRot = 0

◆ gOldYRot

int gOldYRot = 0

◆ gQuitDemo

bool gQuitDemo = false

◆ gRender

◆ gShader

◆ gSpherePos

float gSpherePos[3] = {0,-2,0}

◆ gSphereRadius

float gSphereRadius = 3.0f

◆ gXRot

int gXRot = 0

◆ gYRot

int gYRot = 0