Loading Models with Jim's Code?
Hey,
uh... how are you suppos to load models with Jim''s Core_Graphics?
This is how im doing it, but its not showing up!
cApp::Init()
{
m_Graphics.Init();
#ifdef FULLSCREENMODE
m_Graphics.SetMode(GethWnd(), TRUE, TRUE, 800, 600, 0);
#else
m_Graphics.SetMode(GethWnd(), FALSE, TRUE, 800, 600, 0);
#endif
ShowMouse(TRUE);
m_Mesh.Load(&m_Graphics, "warrior1.x");
return TRUE;
}
cApp::Frame()
{
m_Graphics.EnableZBuffer(TRUE);
m_Graphics.BeginScene();
m_Object.Create(&m_Graphics, &m_Mesh);
m_Object.Move(0.0f, 0.0f, 20.0f);
//m_Object.Rotate(0.0f, 5.0f, 0.0f);
m_Graphics.EndScene();
m_Graphics.Display();
m_Object.Render();
return TRUE;
}
Whats my problem?
Sir Darkan Fireblade
-"I Feel like im playing Poker i dont know who''s bluffing!"-
Use this instead:
cApp::Frame(){ m_Graphics.EnableZBuffer(TRUE); m_Object.Create(&m_Graphics, &m_Mesh); m_Object.Move(0.0f, 0.0f, 20.0f);//m_Object.Rotate(0.0f, 5.0f, 0.0f); m_Graphics.BeginScene(); m_Object.Render(); m_Graphics.EndScene(); m_Graphics.Display(); return TRUE;}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement