CenteringPushMatrix, CenteringPopMatrix
This commit is contained in:
@@ -612,6 +612,16 @@ void RageDisplay::ResolutionChanged()
|
||||
UpdateCentering();
|
||||
}
|
||||
|
||||
void RageDisplay::CenteringPushMatrix()
|
||||
{
|
||||
g_CenteringStack.Push();
|
||||
}
|
||||
|
||||
void RageDisplay::CenteringPopMatrix()
|
||||
{
|
||||
g_CenteringStack.Pop();
|
||||
}
|
||||
|
||||
void RageDisplay::ChangeCentering( int iTranslateX, int iTranslateY, int iAddWidth, int iAddHeight )
|
||||
{
|
||||
g_iTranslateX = iTranslateX;
|
||||
|
||||
@@ -310,6 +310,8 @@ public:
|
||||
void LoadLookAt( float fov, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up );
|
||||
|
||||
/* Centering matrix */
|
||||
void CenteringPushMatrix();
|
||||
void CenteringPopMatrix();
|
||||
void ChangeCentering( int trans_x, int trans_y, int add_width, int add_height );
|
||||
|
||||
RageSurface *CreateSurfaceFromPixfmt( PixelFormat pixfmt, void *pixels, int width, int height, int pitch );
|
||||
|
||||
Reference in New Issue
Block a user