Renderable 3D geometry.
More...
#include <Geometry3D.hpp>
◆ Geometry3D()
Create new 3D geometry.
- Parameters
-
| lowLevelRenderer | The low-level renderer to use. |
◆ ~Geometry3D()
| Geometry3D::~Geometry3D |
( |
| ) |
|
|
virtual |
◆ CreateAxisAlignedBoundingBox() [1/2]
| void Geometry3D::CreateAxisAlignedBoundingBox |
( |
const std::vector< glm::vec3 * > & |
positions | ) |
|
|
protected |
Create local space axis-aligned bounding box around the geometry.
- Parameters
-
| positions | Vector of vertex positions. |
◆ CreateAxisAlignedBoundingBox() [2/2]
| void Geometry3D::CreateAxisAlignedBoundingBox |
( |
glm::vec3 |
dim, |
|
|
glm::vec3 |
origin, |
|
|
glm::vec3 |
minValues, |
|
|
glm::vec3 |
maxValues |
|
) |
| |
|
protected |
Create local space axis-aligned bounding box around the geometry.
- Parameters
-
| dim | Vector of vertex positions. |
| origin | Vector of vertex positions. |
| minValues | Vector of vertex positions. |
| maxValues | Vector of vertex positions. |
◆ GenerateGeometryBinding()
| void Geometry3D::GenerateGeometryBinding |
( |
| ) |
|
|
protected |
Generate geometry binding.
◆ GenerateIndexBuffer()
| void Geometry3D::GenerateIndexBuffer |
( |
uint32_t * |
indexData, |
|
|
unsigned int |
indexCount |
|
) |
| |
|
protected |
Generate index buffer.
- Parameters
-
| indexData | Pointer to array of indices. |
| indexCount | Number of indices. |
◆ GetAxisAlignedBoundingBox()
Get the axis-aligned bounding box around the geometry.
- Returns
- Local space axis-aligned bounding box around the geometry.
◆ GetGeometryBinding()
Get the geometry binding.
- Returns
- The geometry binding.
◆ GetIndexCount()
| unsigned int Geometry3D::GetIndexCount |
( |
| ) |
const |
Get number of indices.
- Returns
- Index count.
◆ GetVertexIndexData()
| const std::vector< uint32_t > & Geometry3D::GetVertexIndexData |
( |
| ) |
const |
Get vertex index vector.
- Returns
- Indices.
◆ GetVertexPositionData()
| const std::vector< glm::vec3 > & Geometry3D::GetVertexPositionData |
( |
| ) |
const |
Get vertex position vector.
- Returns
- Vertex positions.
◆ indexBuffer
| Buffer* Video::Geometry::Geometry3D::indexBuffer = nullptr |
|
protected |
◆ lowLevelRenderer
The low-level renderer used to create buffers and the vertex description.
◆ vertexBuffer
| Buffer* Video::Geometry::Geometry3D::vertexBuffer = nullptr |
|
protected |
◆ vertexDescription
◆ vertexIndexData
| std::vector<uint32_t> Video::Geometry::Geometry3D::vertexIndexData |
|
protected |
◆ vertexPositionData
| std::vector<glm::vec3> Video::Geometry::Geometry3D::vertexPositionData |
|
protected |
The documentation for this class was generated from the following files: