7 #ifndef NAZARA_PRIMITIVELIST_HPP 8 #define NAZARA_PRIMITIVELIST_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Core/Primitive.hpp> 12 #include <Nazara/Math/Quaternion.hpp> 27 void AddCone(
float length,
float radius,
unsigned int subdivision = 4,
const Matrix4f& transformMatrix =
Matrix4f::Identity());
36 void AddUVSphere(
float size,
unsigned int sliceCount = 4,
unsigned int stackCount = 4,
const Matrix4f& transformMatrix =
Matrix4f::Identity());
39 Primitive& GetPrimitive(std::size_t i);
40 const Primitive& GetPrimitive(std::size_t i)
const;
41 std::size_t GetSize()
const;
46 Primitive& operator()(
unsigned int i);
47 const Primitive& operator()(
unsigned int i)
const;
50 std::vector<Primitive> m_primitives;
54 #endif // NAZARA_PRIMITIVELIST_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Math class that represents a plane in 3D.
Definition: Plane.hpp:18
TODO: Inline this.
Definition: PrimitiveList.hpp:17
static Matrix4 Identity()
Shorthand for the identity matrix.
Definition: Matrix4.inl:1562
static Quaternion Identity()
Shorthand for the quaternion (1, 0, 0, 0)
Definition: Quaternion.inl:683