EgtExecutor 1.8b4 :
- aggiunta a Exe e Lua funzione GetImage.
This commit is contained in:
+14
-3
@@ -757,7 +757,7 @@ ExeExistsTexture( const string& sName)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeGetTexturePixels( const std::string& sName, int& nWidth, int& nHeight)
|
||||
ExeGetTexturePixels( const string& sName, int& nWidth, int& nHeight)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, false)
|
||||
@@ -767,7 +767,7 @@ ExeGetTexturePixels( const std::string& sName, int& nWidth, int& nHeight)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeGetTextureDimensions( const std::string& sName, double& dDimX, double& dDimY)
|
||||
ExeGetTextureDimensions( const string& sName, double& dDimX, double& dDimY)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, false)
|
||||
@@ -777,10 +777,21 @@ ExeGetTextureDimensions( const std::string& sName, double& dDimX, double& dDimY)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeChangeTextureDimensions( const std::string& sName, double dDimX, double dDimY)
|
||||
ExeChangeTextureDimensions( const string& sName, double dDimX, double dDimY)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, false)
|
||||
// modifico le dimensioni della texture
|
||||
return pScene->ChangeTextureDimensions( sName, dDimX, dDimY) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeGetImage( int nShowMode, Color colBackTop, Color colBackBottom,
|
||||
int nWidth, int nHeight, const string& sFile)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, false)
|
||||
// creo e salvo una immagine della scena
|
||||
return pScene->GetImage( nShowMode, false, false, colBackTop, colBackBottom, nWidth, nHeight, sFile) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user