Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
testSpherePlaneCollision.cpp File Reference
#include <cassert>
#include <Ult/Effect/TextureShader.h>
#include <Ult/GeometryNode.h>
#include <Ult/Input.h>
#include <Ult/Physics/CollisionResponse.h>
#include <Ult/Physics/PointMass.h>
#include <Ult/Renderer/OpenGLRenderer.h>
#include <Ult/SceneGraph.h>
#include <Ult/Shapes/Shapes.h>
#include <Ult/Timer.h>

Macros

#define WINDOW_NAME   "Sphere Plane Collision Test"
 
#define WINDOW_CLASS   "UPGCLASS"
 
#define WINDOW_WIDTH   800
 
#define WINDOW_HEIGHT   600
 
#define WINDOW_FULLSCREEN   0
 

Functions

ULT_MODEL_RESOURCE_MANAGER gModelManager (32)
 
ULT_EFFECT_RESOURCE_MANAGER gEffectManager (32)
 
void DemoResize (int width, int height)
 
bool DemoInitialize (Ult::RenderParams &params)
 
void DemoUpdate ()
 
void DemoRender ()
 
void DemoShutdown ()
 
int main ()
 

Variables

Ult::DynamicModel gObject1
 
Ult::DynamicModel gObject2
 
Ult::DynamicModel gRoom
 
Ult::PointMass gObj1Mass
 
Ult::PointMass gObj2Mass
 
std::vector< Ult::PlanegRoomPlanes
 
float gLastTime = 0.0f
 
float gCurrentTime = 0.0f
 
Ult::SceneGraph gSceneGraph
 
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   "Sphere Plane Collision 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 ( )

◆ gEffectManager()

ULT_EFFECT_RESOURCE_MANAGER gEffectManager ( 32 )

◆ gModelManager()

ULT_MODEL_RESOURCE_MANAGER gModelManager ( 32 )

◆ main()

int main ( )

Variable Documentation

◆ gCurrentTime

float gCurrentTime = 0.0f

◆ gLastTime

float gLastTime = 0.0f

◆ gObj1Mass

Ult::PointMass gObj1Mass

◆ gObj2Mass

Ult::PointMass gObj2Mass

◆ gObject1

◆ gObject2

◆ gOldXRot

int gOldXRot = 0

◆ gOldYRot

int gOldYRot = 0

◆ gQuitDemo

bool gQuitDemo = false

◆ gRender

◆ gRoom

◆ gRoomPlanes

std::vector<Ult::Plane> gRoomPlanes

◆ gSceneGraph

Ult::SceneGraph gSceneGraph

◆ gXRot

int gXRot = 0

◆ gYRot

int gYRot = 0