![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
TODO: Inline this. More...
#include <PrimitiveList.hpp>
Public Member Functions | |
| PrimitiveList (const PrimitiveList &)=default | |
| PrimitiveList (PrimitiveList &&)=default | |
| void | AddBox (const Vector3f &lengths, const Vector3ui &subdivision=Vector3ui(0U), const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a box centered. More... | |
| void | AddBox (const Vector3f &lengths, const Vector3ui &subdivision, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a box centered. More... | |
| void | AddCone (float length, float radius, unsigned int subdivision=4, const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a cone, centered in (0, 0, 0) and circle in (0, -length, 0) More... | |
| void | AddCone (float length, float radius, unsigned int subdivision, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a cone, centered in (0, 0, 0) and circle in (0, -length, 0) More... | |
| void | AddCubicSphere (float size, unsigned int subdivision=4, const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a cubic sphere, centered in (0, 0, 0) More... | |
| void | AddCubicSphere (float size, unsigned int subdivision, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a cubic sphere, centered in (0, 0, 0) More... | |
| void | AddIcoSphere (float size, unsigned int recursionLevel=3, const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a icosphere, centered in (0, 0, 0) More... | |
| void | AddIcoSphere (float size, unsigned int recursionLevel, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a icosphere, centered in (0, 0, 0) More... | |
| void | AddPlane (const Vector2f &size, const Vector2ui &subdivision, const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a plane, centered in (0, 0, 0) More... | |
| void | AddPlane (const Vector2f &size, const Vector2ui &subdivision, const Planef &planeInfo) |
| Adds a plane, centered in (0, 0, 0) More... | |
| void | AddPlane (const Vector2f &size, const Vector2ui &subdivision, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a plane, centered in (0, 0, 0) More... | |
| void | AddUVSphere (float size, unsigned int sliceCount=4, unsigned int stackCount=4, const Matrix4f &transformMatrix=Matrix4f::Identity()) |
| Adds a UV sphere, centered in (0, 0, 0) More... | |
| void | AddUVSphere (float size, unsigned int sliceCount, unsigned int stackCount, const Vector3f &position, const Quaternionf &rotation=Quaternionf::Identity()) |
| Adds a UV sphere, centered in (0, 0, 0) More... | |
| Primitive & | GetPrimitive (std::size_t i) |
| Gets the ith primitive. More... | |
| const Primitive & | GetPrimitive (std::size_t i) const |
| Gets the ith primitive. More... | |
| std::size_t | GetSize () const |
| Gets the number of primitives. More... | |
| PrimitiveList & | operator= (const PrimitiveList &)=default |
| PrimitiveList & | operator= (PrimitiveList &&)=default |
| Primitive & | operator() (unsigned int i) |
| Gets the ith primitive. More... | |
| const Primitive & | operator() (unsigned int i) const |
| Gets the ith primitive. More... | |
TODO: Inline this.
Core class that represents a list of geometric primitives.
Core class that represents a geometric primitive.
| void Nz::PrimitiveList::AddBox | ( | const Vector3f & | lengths, |
| const Vector3ui & | subdivision = Vector3ui(0U), |
||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a box centered.
| lengths | (Width, Height, Depht) |
| subdivision | Number of subdivision for the axis |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddBox | ( | const Vector3f & | lengths, |
| const Vector3ui & | subdivision, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a box centered.
| lengths | (Width, Height, Depht) |
| subdivision | Number of subdivision for the axis |
| position | Position of the box |
| rotation | Rotation of the box |
| void Nz::PrimitiveList::AddCone | ( | float | length, |
| float | radius, | ||
| unsigned int | subdivision = 4, |
||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a cone, centered in (0, 0, 0) and circle in (0, -length, 0)
| length | Height of the cone |
| radius | Width of the radius |
| subdivision | Number of sides for the circle |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddCone | ( | float | length, |
| float | radius, | ||
| unsigned int | subdivision, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a cone, centered in (0, 0, 0) and circle in (0, -length, 0)
| length | Height of the cone |
| radius | Width of the radius |
| subdivision | Number of sides for the circle |
| position | Position of the cone |
| rotation | Rotation of the cone |
| void Nz::PrimitiveList::AddCubicSphere | ( | float | size, |
| unsigned int | subdivision = 4, |
||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a cubic sphere, centered in (0, 0, 0)
| size | Radius of the cubic sphere |
| subdivision | Number of subdivision for the box |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddCubicSphere | ( | float | size, |
| unsigned int | subdivision, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a cubic sphere, centered in (0, 0, 0)
| size | Radius of the cubic sphere |
| subdivision | Number of subdivision for the box |
| position | Position of the cubic sphere |
| rotation | Rotation of the cubic sphere |
| void Nz::PrimitiveList::AddIcoSphere | ( | float | size, |
| unsigned int | recursionLevel = 3, |
||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a icosphere, centered in (0, 0, 0)
| size | Radius of the icosphere |
| recursionLevel | Number of recursion for the icosphere |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddIcoSphere | ( | float | size, |
| unsigned int | recursionLevel, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a icosphere, centered in (0, 0, 0)
| size | Radius of the sphere |
| recursionLevel | Number of recursion for the icosphere |
| position | Position of the icosphere |
| rotation | Rotation of the icosphere |
| void Nz::PrimitiveList::AddPlane | ( | const Vector2f & | size, |
| const Vector2ui & | subdivision, | ||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a plane, centered in (0, 0, 0)
| size | (Width, Depth) |
| subdivision | Number of subdivision for the axis |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddPlane | ( | const Vector2f & | size, |
| const Vector2ui & | subdivision, | ||
| const Planef & | planeInfo | ||
| ) |
Adds a plane, centered in (0, 0, 0)
| size | (Width, Depth) |
| subdivision | Number of subdivision for the axis |
| planeInfo | Information for the plane |
| void Nz::PrimitiveList::AddPlane | ( | const Vector2f & | size, |
| const Vector2ui & | subdivision, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a plane, centered in (0, 0, 0)
| size | (Width, Depth) |
| subdivision | Number of subdivision for the axis |
| position | Position of the plane |
| rotation | Rotation of the plane |
| void Nz::PrimitiveList::AddUVSphere | ( | float | size, |
| unsigned int | sliceCount = 4, |
||
| unsigned int | stackCount = 4, |
||
| const Matrix4f & | transformMatrix = Matrix4f::Identity() |
||
| ) |
Adds a UV sphere, centered in (0, 0, 0)
| size | Radius of the sphere |
| sliceCount | Number of slices |
| stackCount | Number of stacks |
| transformMatrix | Matrix to apply |
| void Nz::PrimitiveList::AddUVSphere | ( | float | size, |
| unsigned int | sliceCount, | ||
| unsigned int | stackCount, | ||
| const Vector3f & | position, | ||
| const Quaternionf & | rotation = Quaternionf::Identity() |
||
| ) |
Adds a UV sphere, centered in (0, 0, 0)
| size | Radius of the sphere |
| sliceCount | Number of slices |
| stackCount | Number of stacks |
| position | Position of the box |
| rotation | Rotation of the box |
| Primitive & Nz::PrimitiveList::GetPrimitive | ( | std::size_t | i | ) |
Gets the ith primitive.
| i | Index of the primitive |
| const Primitive & Nz::PrimitiveList::GetPrimitive | ( | std::size_t | i | ) | const |
Gets the ith primitive.
| i | Index of the primitive |
| std::size_t Nz::PrimitiveList::GetSize | ( | ) | const |
Gets the number of primitives.
| Primitive & Nz::PrimitiveList::operator() | ( | unsigned int | i | ) |
Gets the ith primitive.
| i | Index of the primitive |
| const Primitive & Nz::PrimitiveList::operator() | ( | unsigned int | i | ) | const |
Gets the ith primitive.
| i | Index of the primitive |