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_COLLISION_BOUNDINGBOX_H
2 #define SKR_FPS2_COLLISION_BOUNDINGBOX_H
6 #include "..\Renderer\OpenGL\Shader.h"
uint32_t _centerVao
vertex array object of center point
Definition: BoundingBox.h:22
uint32_t _centerVbo
vertex buffer object of center point
Definition: BoundingBox.h:23
void CreateGeometry()
greates geometry buffer and initializes them for drawing
Definition: BoundingBox.cpp:49
uint32_t _linesVbo
vertex buffer object for lines visualizating size
Definition: BoundingBox.h:25
void UpdatePosition(glm::vec3 pos)
update position
Definition: BoundingBox.cpp:26
handles shader loading, compiling and linking. Also provides access to set uniform ids and usage.
Definition: Shader.h:31
glm::vec3 _position
position
Definition: BoundingBox.h:19
void Draw(skr::fps2::Renderer::OpenGL::Shader shader, glm::mat4 view, glm::mat4 proj, glm::mat4 model, glm::vec3 color=glm::vec3(1.0f, 0.0f, 0.0f)) const
Draws bounding box.
Definition: BoundingBox.cpp:31
glm::vec3 _size
size
Definition: BoundingBox.h:20
uint32_t _linesVao
vertex array object for lines visualizing size
Definition: BoundingBox.h:24
Definition: AssetPath.h:10
specifies bounding box of a geometry
Definition: BoundingBox.h:17
BoundingBox()
default constructor sets all parameters to 0
Definition: BoundingBox.cpp:13