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:
Dario Sassi
2015-10-11 18:02:06 +00:00
parent 17dc39c758
commit 4a8c2c2e1b
8 changed files with 221 additions and 72 deletions
+16 -2
View File
@@ -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)