Added __screen__ special texture name. Added AMV:GetTexture, RageTexture:Reload, and Screen:SetNextScreenName lua functions.

This commit is contained in:
Kyzentun
2014-09-02 05:18:29 -06:00
parent aac32f81ad
commit 4f2b92a25a
10 changed files with 74 additions and 3 deletions
+10 -2
View File
@@ -65,7 +65,15 @@ void RageBitmapTexture::Create()
/* Load the image into a RageSurface. */
RString error;
RageSurface *pImg = RageSurfaceUtils::LoadFile( actualID.filename, error );
RageSurface *pImg= NULL;
if(actualID.filename == TEXTUREMAN->GetScreenTextureID().filename)
{
pImg= TEXTUREMAN->GetScreenSurface();
}
else
{
pImg= RageSurfaceUtils::LoadFile(actualID.filename, error);
}
/* Tolerate corrupt/unknown images. */
if( pImg == NULL )
@@ -122,7 +130,7 @@ void RageBitmapTexture::Create()
m_iSourceWidth = pImg->w;
m_iSourceHeight = pImg->h;
/* in-game imsage dimensions are the same as the source graphic */
/* in-game image dimensions are the same as the source graphic */
m_iImageWidth = m_iSourceWidth;
m_iImageHeight = m_iSourceHeight;