add support for texture coordinate animation in AnimatedTexture

This commit is contained in:
Chris Danford
2004-08-09 00:46:42 +00:00
parent 3f927e6280
commit 1d376f5795
14 changed files with 224 additions and 101 deletions
+23
View File
@@ -350,6 +350,7 @@ public:
MatrixStack g_ProjectionStack;
MatrixStack g_ViewStack;
MatrixStack g_WorldStack;
MatrixStack g_TextureStack;
const RageMatrix* RageDisplay::GetProjectionTop()
{
@@ -366,6 +367,11 @@ const RageMatrix* RageDisplay::GetWorldTop()
return g_WorldStack.GetTop();
}
const RageMatrix* RageDisplay::GetTextureTop()
{
return g_TextureStack.GetTop();
}
void RageDisplay::PushMatrix()
{
g_WorldStack.Push();
@@ -421,6 +427,23 @@ void RageDisplay::LoadIdentity()
g_WorldStack.LoadIdentity();
}
void RageDisplay::TexturePushMatrix()
{
g_TextureStack.Push();
}
void RageDisplay::TexturePopMatrix()
{
g_TextureStack.Pop();
}
void RageDisplay::TextureTranslate( float x, float y, float z )
{
g_TextureStack.TranslateLocal(x, y, z);
}
void RageDisplay::LoadMenuPerspective( float fovDegrees, float fVanishPointX, float fVanishPointY )
{
/* fovDegrees == 0 looks the same as an ortho projection. However,