EgtGraphics 1.6j1 :
- aggiunto TextureMgr per gestire le textures caricate - fatte modifiche per visualizzare gli oggetti con le textures (solo opachi).
This commit is contained in:
+16
-2
@@ -20,9 +20,9 @@ using namespace std ;
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Scene::LoadTexture( const string& sName, const string& sFile,
|
||||
double dMMxPix, double dDimX, double dDimY, bool bRepeat)
|
||||
double dMMxPix, double dDimX, double dDimY, int nRepeat)
|
||||
{
|
||||
return m_TextMgr.LoadTexture( sName, sFile, dMMxPix, dDimX, dDimY, bRepeat) ;
|
||||
return m_TextMgr.LoadTexture( sName, sFile, dMMxPix, dDimX, dDimY, nRepeat) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -32,6 +32,20 @@ Scene::UnloadTexture( const string& sName)
|
||||
return m_TextMgr.UnloadTexture( sName) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Scene::UnloadAllTextures( void)
|
||||
{
|
||||
return m_TextMgr.Clear() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Scene::ExistsTexture( const string& sName)
|
||||
{
|
||||
return m_TextMgr.Exists( sName) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Scene::GetTexturePixels( const string& sName, int& nWidth, int& nHeight)
|
||||
|
||||
Reference in New Issue
Block a user