|
| VAOMesh (Primitive p) |
|
| VAOMesh (VAOMesh const &other) |
|
| VAOMesh (VAOMesh &&other) |
|
VAOMesh & | operator= (VAOMesh const &other) |
|
VAOMesh & | operator= (VAOMesh &&other) |
|
VAO & | vao () |
|
MeshAttrib & | positionAtt () |
|
MeshAttrib & | colorAtt () |
|
MeshAttrib & | texcoord2dAtt () |
|
MeshAttrib & | normalAtt () |
|
BufferObject & | indexBuffer () |
|
void | update () |
|
void | bind () |
|
void | unbind () |
|
template<typename T > |
void | updateAttrib (std::vector< T > const &data, MeshAttrib &att) |
|
void | draw () |
|
void | copy (Mesh const &m) |
|
void | getBounds (Vec3f &min, Vec3f &max) const |
| Get corners of bounding box of vertices. More...
|
|
Vec3f | getCenter () const |
| Get center of vertices.
|
|
void | compress () |
| Generates indices for a set of vertices.
|
|
void | decompress () |
| Convert indices (if any) to flat vertex buffers.
|
|
void | equalizeBuffers () |
| Extend buffers to match number of vertices. More...
|
|
void | merge (const Mesh &src) |
| Append buffers from another mesh:
|
|
void | toTriangles () |
| Convert triangle strip to triangles.
|
|
Mesh & | reset () |
| Reset all buffers.
|
|
void | unitize (bool proportional=true) |
| Scale all vertices to lie in [-1,1].
|
|
Mesh & | scale (float x, float y, float z) |
| Scale all vertices.
|
|
Mesh & | scale (float s) |
|
template<class T > |
Mesh & | scale (const Vec< 3, T > &v) |
|
Mesh & | translate (float x, float y, float z) |
| Translate all vertices.
|
|
template<class T > |
Mesh & | translate (const Vec< 3, T > &v) |
|
template<class T > |
Mesh & | translate (const T &v) |
|
template<class T > |
Mesh & | transform (const Mat< 4, T > &m, int begin=0, int end=-1) |
| Transform vertices by projective transform matrix. More...
|
|
void | generateNormals (bool normalize=true, bool equalWeightPerFace=false) |
| Generates normals for a set of vertices. More...
|
|
void | invertNormals () |
| Invert direction of normals.
|
|
void | createNormalsMesh (Mesh &mesh, float length=0.1, bool perFace=false) |
| Creates a mesh filled with lines for each normal of the source. More...
|
|
void | ribbonize (float width=0.04, bool faceBinormal=false) |
| Ribbonize curve. More...
|
|
void | ribbonize (float *widths, int widthsStride=1, bool faceBinormal=false) |
| Ribbonize curve. More...
|
|
void | smooth (float amount=1, int weighting=0) |
| Smooths a triangle mesh. More...
|
|
Primitive | primitive () const |
|
Mesh & | primitive (Primitive p) |
| Set geometric primitive.
|
|
const std::vector< Vertex > & | vertices () const |
|
Vertices & | vertices () |
|
const std::vector< Normal > & | normals () const |
|
Normals & | normals () |
|
const std::vector< Color > & | colors () const |
|
Colors & | colors () |
|
const std::vector< TexCoord1 > & | texCoord1s () const |
|
TexCoord1s & | texCoord1s () |
|
const std::vector< TexCoord2 > & | texCoord2s () const |
|
TexCoord2s & | texCoord2s () |
|
const std::vector< TexCoord3 > & | texCoord3s () const |
|
TexCoord3s & | texCoord3s () |
|
const std::vector< Index > & | indices () const |
|
Indices & | indices () |
|
Mesh & | repeatLast () |
| Repeat last vertex element(s)
|
|
void | index (unsigned int i) |
| Append index to index buffer.
|
|
template<class Tindex > |
void | index (const Tindex *buf, int size, Tindex indexOffset=0) |
| Append indices to index buffer.
|
|
template<class... Indices> |
void | index (unsigned i, Indices... indices) |
|
void | color (const Color &v) |
| Append color to color buffer.
|
|
void | color (const HSV &v) |
| Append color to color buffer.
|
|
void | color (const RGB &v) |
| Append color to color buffer.
|
|
void | color (float r, float g, float b, float a=1) |
| Append color to color buffer.
|
|
template<class T > |
void | color (const Vec< 4, T > &v) |
| Append color to color buffer.
|
|
template<class T > |
void | color (const T *src, int numColors) |
| Append colors from flat array.
|
|
void | normal (float x, float y, float z=0) |
| Append normal to normal buffer.
|
|
void | normal (const Normal &v) |
| Append normal to normal buffer.
|
|
template<class T > |
void | normal (const Vec< 2, T > &v, float z=0) |
| Append normal to normal buffer.
|
|
template<class T > |
void | normal (const T *src, int numNormals) |
| Append normals from flat array.
|
|
void | texCoord (float u) |
| Append texture coordinate to 1D texture coordinate buffer.
|
|
void | texCoord (float u, float v) |
| Append texture coordinate to 2D texture coordinate buffer.
|
|
template<class T > |
void | texCoord (const Vec< 2, T > &v) |
| Append texture coordinate to 2D texture coordinate buffer.
|
|
void | texCoord (float u, float v, float w) |
| Append texture coordinate to 3D texture coordinate buffer.
|
|
template<class T > |
void | texCoord (const Vec< 3, T > &v) |
| Append texture coordinate to 3D texture coordinate buffer.
|
|
void | vertex (float x, float y, float z=0) |
| Append vertex to vertex buffer.
|
|
void | vertex (const Vertex &v) |
| Append vertex to vertex buffer.
|
|
template<class T > |
void | vertex (const Vec< 2, T > &v, float z=0) |
| Append vertex to vertex buffer.
|
|
template<class T > |
void | vertex (const T *src, int numVerts) |
| Append vertices from flat array.
|
|
template<class T > |
void | vertex (const Vec< 3, T > *src, int numVerts) |
| Append vertices to vertex buffer.
|
|
bool | save (const char *filePath, const char *solidName="", bool binary=true) const |
| Save mesh to file. More...
|
|
bool | saveSTL (const char *filePath, const char *solidName="") const |
| Save mesh to an STL file. More...
|
|
bool | savePLY (const char *filePath, const char *solidName="", bool binary=true) const |
| Save mesh to a PLY file. More...
|
|
void | print (FILE *dst=stderr) const |
| Print information about Mesh.
|
|
VAOMesh class
Stores gpu objects as shared pointer to that this class can be copied for moved this is useful for storing this class in std::vector, etc.
Definition at line 34 of file al_VAOMesh.hpp.