Ion
|
This struct contains specifications common to all basic shapes. More...
#include "shapeutils.h"
Public Types | |
enum | VertexType { kPosition, kPositionTexCoords, kPositionNormal, kPositionTexCoordsNormal } |
This enum is used to specify what per-vertex attributes should be included in a Shape. More... | |
Public Member Functions | |
ShapeSpec () | |
Public Attributes | |
base::AllocatorPtr | allocator |
math::Point3f | translation |
The order of operations is: scale, then rotate, then translate. More... | |
float | scale |
math::Matrix3f | rotation |
VertexType | vertex_type |
gfx::BufferObject::UsageMode | usage_mode |
UsageMode for all created BufferObject instances. More... | |
This struct contains specifications common to all basic shapes.
Default values are listed in parentheses in the member field comments.
Definition at line 40 of file shapeutils.h.
This enum is used to specify what per-vertex attributes should be included in a Shape.
Only the three geometric attributes available in the global registry ("aVertex", "aNormal", and "aTexCoords") are supported.
Enumerator | |
---|---|
kPosition | |
kPositionTexCoords | |
kPositionNormal | |
kPositionTexCoordsNormal |
Definition at line 44 of file shapeutils.h.
|
inline |
Definition at line 50 of file shapeutils.h.
base::AllocatorPtr ion::gfxutils::ShapeSpec::allocator |
Definition at line 55 of file shapeutils.h.
Referenced by ion::gfxutils::BuildBoxShape(), ion::gfxutils::BuildCylinderShape(), ion::gfxutils::BuildEllipsoidShape(), ion::gfxutils::BuildRectangleShape(), ion::gfxutils::BuildRegularPolygonShape(), and ion::gfxutils::LoadExternalShape().
math::Matrix3f ion::gfxutils::ShapeSpec::rotation |
Definition at line 59 of file shapeutils.h.
float ion::gfxutils::ShapeSpec::scale |
Definition at line 58 of file shapeutils.h.
math::Point3f ion::gfxutils::ShapeSpec::translation |
The order of operations is: scale, then rotate, then translate.
Definition at line 57 of file shapeutils.h.
gfx::BufferObject::UsageMode ion::gfxutils::ShapeSpec::usage_mode |
UsageMode for all created BufferObject instances.
This also affects whether data is considered wipeable. (gfx::BufferObject::kStaticDraw).
Definition at line 63 of file shapeutils.h.
VertexType ion::gfxutils::ShapeSpec::vertex_type |
Definition at line 60 of file shapeutils.h.