libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
|
Base abstracta de base para las geometrías. More...
#include <moGUIManager.h>
Public Member Functions | |
moGeometry () | |
moGeometry (moGeometryType p_type) | |
virtual | ~moGeometry () |
moGeometry (const moGeometry &p_src) | |
moGeometry & | operator= (const moGeometry &p_src) |
virtual MOboolean | Init () |
Inicializa el objeto. More... | |
virtual MOboolean | Init (moResourceManager *pResourceManager) |
virtual MOboolean | Finish () |
Finaliza el objeto, libera recursos. More... | |
virtual float * | GetVerticesBuffer () |
virtual float * | GetNormalsBuffer () |
virtual float * | GetColorBuffer () |
virtual float * | GetVerticesUVBuffer () |
virtual const moPointArray & | GetVertices () const |
virtual const moPointArray & | GetNormals () const |
virtual const moTCoordArray & | GetVerticesUV () const |
virtual const moTCoordArray & | GetFacesUV () const |
virtual const moColorArray & | GetColors () const |
virtual const moFaceArray & | GetFaces () const |
moGeometryType | GetType () const |
void | applyMatrix (const moGLMatrixf &p_ModelMatrix) |
int | addAttribute (const moText &p_AttributeName, moAttribute *p_attribute) |
int | removeAttribute (const moText &p_AttributeName) |
moAttribute * | getAttribute (const moText &p_AttributeName) |
virtual moText | ToJSON () |
Public Member Functions inherited from moResourceElement | |
moResourceElement () | |
moResourceElement (moResourceType p_type) | |
virtual | ~moResourceElement () |
virtual void | SetResourceManager (moResourceManager *p_rm) |
virtual moResourceManager * | GetResourceManager () |
moResourceType | GetResourceType () |
Public Member Functions inherited from moAbstract | |
moAbstract () | |
virtual | ~moAbstract () |
MOboolean | Initialized () |
Pregunta si está inicializado. More... | |
Static Public Member Functions | |
static moText | TypeToStr (moGeometryType p_type) |
Public Attributes | |
moText | m_Name |
moGeometryType | m_Type |
moPointArray | m_Vertices |
moTCoordArray | m_VerticesUvs |
moVertexArray | m_Normals |
moColorArray | m_Colors |
MOfloat * | m_VerticesBuffer |
MOfloat * | m_NormalsBuffer |
MOfloat * | m_VerticesUVBuffer |
MOfloat * | m_ColorBuffer |
moFaceArray | m_Faces |
moTCoordArray | m_FaceVertexUvs |
moAttributeArray | m_Attributes |
Public Attributes inherited from moAbstract | |
MOboolean | m_bInitialized |
Valor de inicialización More... | |
Additional Inherited Members | |
Static Public Attributes inherited from moAbstract | |
static moDebug * | MODebug2 = new moDebug() |
Clase de impresión de errores para depuración More... | |
static moTextHeap * | MODebug = new moTextHeap() |
Lista de textos. More... | |
Protected Attributes inherited from moResourceElement | |
moResourceType | m_ResourceType |
moResourceManager * | m_pResourceManager |
Base abstracta de base para las geometrías.
Todas las geometrías como Cubo, Esfera, Triangulo, .. derivan de esta clase que contiene un vector de vertices y otro de indices que referencian a esos vertices. El modo directo que consiste en simplemente usar el vector de vertices para dibujar la geometría, puede forzarse al llamar al constructor moGeometry( p_direct_mode = false|true )
Definition at line 127 of file moGUIManager.h.
moGeometry::moGeometry | ( | ) |
Definition at line 60 of file moGUIManager.cpp.
moGeometry::moGeometry | ( | moGeometryType | p_type | ) |
Definition at line 69 of file moGUIManager.cpp.
|
virtual |
Definition at line 77 of file moGUIManager.cpp.
|
inline |
Definition at line 134 of file moGUIManager.h.
int moGeometry::addAttribute | ( | const moText & | p_AttributeName, |
moAttribute * | p_attribute | ||
) |
void moGeometry::applyMatrix | ( | const moGLMatrixf & | p_ModelMatrix | ) |
Definition at line 114 of file moGUIManager.cpp.
|
virtual |
Finaliza el objeto, libera recursos.
Función de finalización. Libera los recursos generados en la función de inicialización.
Reimplemented from moAbstract.
Definition at line 109 of file moGUIManager.cpp.
moAttribute* moGeometry::getAttribute | ( | const moText & | p_AttributeName | ) |
|
virtual |
Definition at line 270 of file moGUIManager.cpp.
|
inlinevirtual |
Definition at line 163 of file moGUIManager.h.
|
inlinevirtual |
Definition at line 168 of file moGUIManager.h.
|
inlinevirtual |
Definition at line 159 of file moGUIManager.h.
|
inlinevirtual |
Definition at line 151 of file moGUIManager.h.
|
virtual |
Definition at line 280 of file moGUIManager.cpp.
|
inline |
Definition at line 172 of file moGUIManager.h.
|
inlinevirtual |
Definition at line 147 of file moGUIManager.h.
|
virtual |
i*9 = each face is a triangle, 3 components * 3 vertices
position
texture uv
color r,g,b
Definition at line 226 of file moGUIManager.cpp.
|
inlinevirtual |
Definition at line 155 of file moGUIManager.h.
|
virtual |
Definition at line 275 of file moGUIManager.cpp.
|
virtual |
Inicializa el objeto.
Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.
Reimplemented from moAbstract.
Definition at line 100 of file moGUIManager.cpp.
|
virtual |
Reimplemented from moResourceElement.
Definition at line 104 of file moGUIManager.cpp.
moGeometry & moGeometry::operator= | ( | const moGeometry & | p_src | ) |
Definition at line 82 of file moGUIManager.cpp.
int moGeometry::removeAttribute | ( | const moText & | p_AttributeName | ) |
|
virtual |
Definition at line 182 of file moGUIManager.cpp.
|
static |
Definition at line 119 of file moGUIManager.cpp.
moAttributeArray moGeometry::m_Attributes |
Definition at line 202 of file moGUIManager.h.
MOfloat* moGeometry::m_ColorBuffer |
Definition at line 198 of file moGUIManager.h.
moColorArray moGeometry::m_Colors |
Definition at line 193 of file moGUIManager.h.
moFaceArray moGeometry::m_Faces |
Definition at line 200 of file moGUIManager.h.
moTCoordArray moGeometry::m_FaceVertexUvs |
Definition at line 201 of file moGUIManager.h.
moText moGeometry::m_Name |
Definition at line 187 of file moGUIManager.h.
moVertexArray moGeometry::m_Normals |
Definition at line 192 of file moGUIManager.h.
MOfloat* moGeometry::m_NormalsBuffer |
Definition at line 196 of file moGUIManager.h.
moGeometryType moGeometry::m_Type |
Definition at line 188 of file moGUIManager.h.
moPointArray moGeometry::m_Vertices |
Definition at line 190 of file moGUIManager.h.
MOfloat* moGeometry::m_VerticesBuffer |
Definition at line 195 of file moGUIManager.h.
MOfloat* moGeometry::m_VerticesUVBuffer |
Definition at line 197 of file moGUIManager.h.
moTCoordArray moGeometry::m_VerticesUvs |
Definition at line 191 of file moGUIManager.h.