Split ModelView matrix stack into View and World stacks.

Add "hallway" and "distant" mods.
This commit is contained in:
Chris Danford
2003-09-21 02:36:28 +00:00
parent c93b1592c2
commit c8f7c02036
13 changed files with 205 additions and 127 deletions
+3 -6
View File
@@ -26,7 +26,7 @@ NoteFieldMode::NoteFieldMode()
void NoteFieldMode::BeginDrawTrack(int tn)
{
DISPLAY->PushMatrix();
DISPLAY->CameraPushMatrix();
/* It's useful to be able to use Actors like this, functioning only
* for a transformation. However, this is a big waste of matrix
@@ -36,7 +36,7 @@ void NoteFieldMode::BeginDrawTrack(int tn)
m_CenterTrack[tn].BeginDraw();
if(m_fFov)
DISPLAY->EnterPerspective(m_fFov, true, m_fNear, m_fFar);
DISPLAY->LoadMenuPerspective(m_fFov, CENTER_X, CENTER_Y);
m_Position.BeginDraw();
if(tn != -1)
@@ -49,14 +49,11 @@ void NoteFieldMode::EndDrawTrack(int tn)
m_PositionTrack[tn].EndDraw();
m_Position.EndDraw();
if(m_fFov)
DISPLAY->ExitPerspective();
if(tn != -1)
m_CenterTrack[tn].EndDraw();
m_Center.EndDraw();
DISPLAY->PopMatrix();
DISPLAY->CameraPopMatrix();
}
template <class T>