Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
testBumpMapping.cpp File Reference
#include <cassert>
#include <Ult/Input.h>
#include <Ult/ModelData.h>
#include <Ult/Renderer/OpenGLRenderer.h>
#include <Ult/Shapes/Shapes.h>

Classes

struct  stVertex
 

Macros

#define WINDOW_NAME   "Bump Mapping 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

stVertex gBoxData []
 
unsigned int gBoxIndices [36]
 
int gNumBoxIndices = 36
 
Ult::VertexDescriptor gDesc
 
Ult::OpenGLRenderer gRender
 
Ult::Texture gTex
 
Ult::Texture gTex2
 
Ult::ShaderHandle gShader
 
Ult::ParameterHandle gDecalParam
 
Ult::ParameterHandle gBumpParam
 
Ult::ParameterHandle gLightPos
 
Ult::ParameterHandle gLightCol
 
int gXRot = 0
 
int gOldXRot = 0
 
int gYRot = 0
 
int gOldYRot = 0
 
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   "Bump Mapping 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

◆ gBoxData

stVertex gBoxData[]

◆ gBoxIndices

unsigned int gBoxIndices[36]
Initial value:
= {
0, 1, 2,
2, 3, 0,
4, 5, 6,
6, 7, 4,
8, 9, 10,
10, 11, 8,
12, 13, 14,
14, 15, 12,
16, 17, 18,
18, 19, 16,
20, 21, 22,
22, 23, 20
}

◆ gBumpParam

◆ gDecalParam

Ult::ParameterHandle gDecalParam

◆ gDesc

◆ gLightCol

◆ gLightPos

◆ gNumBoxIndices

int gNumBoxIndices = 36

◆ gOldXRot

int gOldXRot = 0

◆ gOldYRot

int gOldYRot = 0

◆ gQuitDemo

bool gQuitDemo = false

◆ gRender

◆ gShader

◆ gTex

◆ gTex2

Ult::Texture gTex2

◆ gXRot

int gXRot = 0

◆ gYRot

int gYRot = 0