6 #ifndef HIRO_DRAW_PRIMITIVE_DATABASE_H 7 #define HIRO_DRAW_PRIMITIVE_DATABASE_H 10 #include <Utils/GeometryStructures.h> 11 #include <GLW/ArrayObject.h> 12 #include <HIRO_DRAW/API.h> 100 static glw::PArrayObject GenerateUvSphere(
float radius, uint32_t smoothness = 8);
103 static glw::PArrayObject GeneratePlane(
const glm::vec3 &position,
float sizing, geom::Axis perpandicular_to);
108 std::vector<glw::PArrayObject> primitives_;
109 std::vector<hiro::draw::Geometry> geometries_;
uint32_t vertex_count
Number of vertices which are entering vertex shader.
Definition: PrimitiveDatabase.h:45
Unit sized line laying on x-axis.
HIRO_DRAW_API std::string ToString(hiro::draw::GeometryName geom)
Converts hiro::draw::GeometryName type to the text reprersentation.
Database of common mesh primitives. Automatically manages OpenGL resources.
Definition: PrimitiveDatabase.h:71
glw::PArrayObject buffer
Pointer to array buffer object holding OpenGL buffers.
Definition: PrimitiveDatabase.h:49
uint32_t face_count
Number of rendered faces.
Definition: PrimitiveDatabase.h:47
Standard cube with unit side length.
PrimitiveName
List of available names for primitives generated by hiro::draw::PrimitiveDatabase.
Definition: PrimitiveDatabase.h:55
Unit sized plane perpendicular to z-axis.
hiro::draw::GeometryName name
Identifier name.
Definition: PrimitiveDatabase.h:43
Icosahedron with unit radius subdivided.
Number of available names.
Icosahedron with unit radius.
GeometryName
List of available names for geometry objects generated by hiro::draw::PrimitiveDatabase.
Definition: PrimitiveDatabase.h:20
Extensions for object visualization. Implements a higher level of OpenGL rendering.
Definition: API.h:20
Holds information about geometry.
Definition: PrimitiveDatabase.h:40
Unit sized plane perpendicular to y-axis.
Anisotropic thin octahedron laying on x-axis <0,1>.
Icosahedron with unit radius subdivided twice.
Unit sized spacial basis.
Camera mesh aligned with view space looking to negative z.
Unit sized plane perpendicular to x-axis.