PCG-FPS
v2 m0.22.4
Simple First Person Shooter with Procedurally Generated Level
|
Go to the documentation of this file. 1 #ifndef SKR_FPS2_RENDERER_OPENGL_ROOM_H
2 #define SKR_FPS2_RENDERER_OPENGL_ROOM_H
9 #include "..\..\Collision\CollisionBox.h"
MaterialParameters _material
material used to draw geometry
Definition: RoomGeometry.h:39
std::vector< TargetGeometry > _targets
list of targets in this room
Definition: RoomGeometry.h:42
uint32_t _depthMapFBO
frame buffer to render depth map to, used in shadow mapping
Definition: RoomGeometry.h:33
uint32_t _VBO
vertex buffer object
Definition: RoomGeometry.h:29
handles shader loading, compiling and linking. Also provides access to set uniform ids and usage.
Definition: Shader.h:31
std::vector< skr::fps2::Collision::CollisionBox * > _collisionObjects
list of collisions objects
Definition: RoomGeometry.h:41
uint32_t _VAO
vertex array object
Definition: RoomGeometry.h:28
ShaderType _shadertype
type of shader used to draw geometry
Definition: RoomGeometry.h:38
skr::pcg::Room _room
room from procedural generation
Definition: RoomGeometry.h:27
std::vector< PointLight > _PointLights
list of point lights in this room
Definition: RoomGeometry.h:30
ShaderType
shader type identifies. Used as keys in map keeping shaders
Definition: Shader.h:18
holding material parameters for objects without textures
Definition: MaterialParameters.h:18
holds geometry of a room
Definition: RoomGeometry.h:24
std::vector< Mesh > _meshes
list of meshes
Definition: RoomGeometry.h:37
Definition: AssetPath.h:10
void RenderDepthMap(Shader shader, glm::vec3 light_movement, float currentTime=0.0f)
renders depthmap
Definition: RoomGeometry.cpp:76
RoomGeometry()
default constructor default constructor is needed since OpenGL Renderer Object is a global object,...
Definition: RoomGeometry.h:46
~RoomGeometry()
destructor
Definition: RoomGeometry.cpp:44
void PrepareDepthMaps()
initializes framebuffer and cubemap to render depthmap
Definition: RoomGeometry.cpp:50
uint32_t _depthCubeMap
cube map texture for depth map, used in shadow mapping
Definition: RoomGeometry.h:34
uint32_t _numVertices
number of vertices of geometry
Definition: RoomGeometry.h:36