|
Maya 1.0
|
This class implements a mesh whose structure is optimized for the GPU. More...
#include <maya.h>
Public Member Functions | |
| MayaGpu () | |
| Empty. | |
| MayaGpu (const MayaGeometry &) | |
| Creates an instance. | |
| ~MayaGpu () | |
| Destry a Maya Gpu instance. | |
| void | RenderBBox () |
| Renders the bounding box of the instance. | |
| void | RenderBBox (Camera c, int width, int height) |
| Renders the bounding box of the instance. | |
| void | SetName (const QString &) |
| Set the name of the object. | |
| void | SetMaterial (const MayaMaterial &) |
| Set material. | |
| void | InitMaterial () |
| Initialize the material of the object. | |
| void | InitTexture () |
| Initialize the texture. | |
| QString | GetName () const |
| Get the name of the object. | |
| Box | getBox () |
| Get the bounding box of the object. | |
| MayaStatistics | GetStatistics () const |
| Compute statistics. | |
Protected Member Functions | |
| void | InitRenderer () |
| initialize the renderer | |
| void | CreateGpu (const MayaGeometry &) |
| Create a MayaGpu from the MayaGeometry. | |
| void | DeleteBuffers () |
| Delete all buffers. | |
Protected Attributes | |
| QString | name |
| Signature of the object, implemented as the name of the corresponding mesh file. | |
| MayaStatistics | statistics |
| Statistics of the object, which are derived from the arguments of the constructor. | |
| MayaMaterial | mat |
| Material structure of the Object. | |
| GLuint | buffer_vertex |
| Buffer of vertex. | |
| GLuint | buffer_normal |
| Buffer of normal. | |
| GLuint | buffer_color |
| Buffer of color. | |
| GLuint | buffer_UVmap |
| Buffer of UVMaps. | |
| GLuint | buffer_index |
| Buffer of indexes. | |
| MayaGpuMaterial | material |
| Material data. | |
| GLuint | buffer_material |
| Uniform material buffer. | |
| GLuint | buffer_texture |
| Buffer of texture. | |
| int | nv |
| Number of vertices. | |
| int | nt |
| Number of triangles. | |
| Box | bbox |
| Bounding box. | |
| MayaSimpleRenderer * | boxRenderer |
| Renderer used to draw the bounding box. | |
This class implements a mesh whose structure is optimized for the GPU.
| MayaGpu::MayaGpu | ( | ) |
| MayaGpu::MayaGpu | ( | const MayaGeometry & | mg | ) |
Creates an instance.
| mg | Geometry. |
References bbox, boxRenderer, buffer_color, buffer_index, buffer_material, buffer_normal, buffer_texture, buffer_UVmap, buffer_vertex, CreateGpu(), MayaGeometry::GetBox(), MayaGeometry::GetMaterial(), MayaGeometry::GetName(), MayaGeometry::GetStatistics(), InitMaterial(), InitTexture(), mat, name, nt, nv, and statistics.
|
protected |
Create a MayaGpu from the MayaGeometry.
| mg | Geometry. |
References buffer_color, buffer_index, buffer_normal, buffer_UVmap, buffer_vertex, MayaGeometry::GetBox(), MayaGeometry::GetColor(), MayaGeometry::GetNormal(), MayaGeometry::GetUV(), MayaGeometry::GetVertex(), mat, and nv.
Referenced by MayaGpu().
| void MayaGpu::SetMaterial | ( | const MayaMaterial & | m | ) |
|
inline |