94 if (nFind && nFind->
GetName()==p_name) {
99 if (nFind)
return nFind;
110 if (nFind && nFind->
GetId()==p_id) {
115 if (nFind)
return nFind;
137 if (p_child_node==NULL)
return -1;
218 glEnable(GL_TEXTURE_2D);
228 TID = MAT.
texMaps[0].textureId;
230 if ( TID!=65535 && TID>0) {
231 glBindTexture(GL_TEXTURE_2D, TID );
233 glBindTexture(GL_TEXTURE_2D, 1 );
239 glDisable(GL_TEXTURE_2D);
253 for(
int whichVertex = 0; whichVertex < 3; whichVertex++)
276 float rf = (float)pColor[0] * state->
tintr;
277 float rg = (
float)pColor[1] * state->
tintg;
278 float rb = (float)pColor[2] * state->
tintb;
279 float af = 255.0 * state->
alpha;
280 glColor4f( rf, rg, rb, af);
291 glTexCoord2f( x , y );
307 float rf = (float)pColor[0] * state->
tintr;
308 float rg = (
float)pColor[1] * state->
tintg;
309 float rb = (float)pColor[2] * state->
tintb;
310 float af = 255.0 * state->
alpha;
311 glColor4f( rf, rg, rb, af);
322 #endif // End the drawing
373 MODebug2->
Message(
"mo3dModelManager::Init > loaded Moldeo 3ds Model!!! ");
493 if (!pFind && force_load) {
503 cout <<
"mo3dModelManager::MoldeoLogo > ticks: " << ticks << endl;
moText GetFullName()
Retreive full file name: return "myFileName" for "myFileName.txt".
void Error(moText p_text)
Anuncia y registra un error.
virtual MOboolean Init()
Inicializa el objeto.
void SetName(const moText &p_name)
virtual MOboolean Finish()
virtual void Draw(moEffectState *state, GLuint g_ViewMode)
static MOulong CreateUID()
void MoldeoLogo(long ticks=0)
void SetResourceType(moResourceType p_restype)
moSceneNode * m_pMoldeoLogo
moSceneNodePointerArray m_Childrens
std::vector< mo3DSTextureMapInfo > texMaps
moFile GetDataFile(const moText &p_file_name)
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
clase de para manejar textos
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
moResourceManager * m_pResourceManager
Puntero al administrador de recursos.
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
moGLMatrixf & MakeIdentity()
moGLMatrixf m_ModelMatrix
virtual void Interaction()
virtual void Interaction()
moSceneNode * Get3dModel(const moText &p_object_name, bool force_load=false)
virtual MOboolean Init()
Inicializa el objeto.
vector< mo3DSObject > pObject
virtual moSceneNode * GetObjectByName(const moText &p_name)
void SetLabelName(const moText &p_labelname)
virtual moSceneNode * GetChild(int p_index_child)
virtual int RemoveChild(moSceneNodePointer p_child_node)
static moDebug * MODebug2
Clase de impresión de errores para depuración
#define moDefineDynamicArray(name)
moDataManager * GetDataMan()
virtual moSceneNode * GetObjectById(MOulong p_id)
virtual ~mo3DSModelSceneNode()
moSceneNode * Load3dModel(const moText &p_file_name)
virtual void Draw(moEffectState *state, GLuint g_ViewMode)
vector< mo3DSMaterialInfo > pMaterials
LIBMOLDEO_API moText0 IntToStr(int a)
virtual int AddChild(moSceneNodePointer p_child_node)
moGLMatrixf m_ProjectionMatrix
moSceneNode & operator=(const moSceneNode &p_src)
moFile GetAppDataFile(const moText &p_file_name)
void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
virtual ~mo3dModelManager()
void SetType(moMoldeoObjectType p_type)
moTextureManager * GetTextureMan()
virtual const moText & ToJSON()