18 #ifndef ION_GFXUTILS_SHAPEUTILS_H_
19 #define ION_GFXUTILS_SHAPEUTILS_H_
246 size(1.f, 1.f, 1.f) {}
309 #endif // ION_GFXUTILS_SHAPEUTILS_H_
This struct contains specifications common to all basic shapes.
math::Anglef latitude_start
math::Anglef latitude_end
IndexSize index_size
The size of the vertex index data type.
Angle< float > Anglef
Type-specific typedefs.
Matrix< 3, float > Matrix3f
External geometry formats.
const gfx::ShapePtr BuildEllipsoidShape(const EllipsoidSpec &spec)
Builds and returns a Shape representing an axis-aligned ellipsoid.
gfx::BufferObject::UsageMode usage_mode
UsageMode for all created BufferObject instances.
const gfx::ShapePtr BuildCylinderShape(const CylinderSpec &spec)
Builds and returns a Shape representing an axis-aligned cylinder.
math::Anglef longitude_start
const gfx::IndexBufferPtr BuildWireframeIndexBuffer(const gfx::IndexBufferPtr &tri_index_buffer)
Public functions.
const gfx::ShapePtr LoadExternalShape(const ExternalShapeSpec &spec, std::istream &in)
Loads a Shape with the specified format from the passed stream.
math::Anglef longitude_end
VertexType
This enum is used to specify what per-vertex attributes should be included in a Shape.
const gfx::ShapePtr BuildRegularPolygonShape(const RegularPolygonSpec &spec)
Builds and returns a Shape representing a flat regular polygon.
Format
The set of external geometry file formats that can be read with LoadExternalShape().
const gfx::ShapePtr BuildBoxShape(const BoxSpec &spec)
Builds and returns a Shape representing an axis-aligned box.
IndexSize
The size of the vertex index data type.
PlaneNormal
This enum specifies the principal Cartesian plane containing the rectangle by its directed normal...
bool center_at_origin
Whether to center the loaded object at the origin (defaults to true).
math::Point3f translation
The order of operations is: scale, then rotate, then translate.
base::AllocatorPtr allocator
const gfx::ShapePtr BuildRectangleShape(const RectangleSpec &spec)
Builds and returns a Shape representing a rectangle in one of the principal Cartesian planes...