EgtGraphics :

- migliorata gestione textures.
This commit is contained in:
Dario Sassi
2015-10-01 20:48:12 +00:00
parent b839d7ac36
commit 17dc39c758
5 changed files with 105 additions and 39 deletions
+34 -3
View File
@@ -15,11 +15,42 @@
#include "stdafx.h"
#include "Scene.h"
using namespace std ;
//----------------------------------------------------------------------------
bool
Scene::LoadTexture( const std::string& sName, const std::string& sFile,
double dDimX, double dDimY, bool bRepeat)
Scene::LoadTexture( const string& sName, const string& sFile,
double dMMxPix, double dDimX, double dDimY, bool bRepeat)
{
return m_TextMgr.LoadTexture( sName, sFile, dDimX, dDimY, bRepeat) ;
return m_TextMgr.LoadTexture( sName, sFile, dMMxPix, dDimX, dDimY, bRepeat) ;
}
//----------------------------------------------------------------------------
bool
Scene::UnloadTexture( const string& sName)
{
return m_TextMgr.UnloadTexture( sName) ;
}
//----------------------------------------------------------------------------
bool
Scene::GetTexturePixels( const string& sName, int& nWidth, int& nHeight)
{
return m_TextMgr.GetPixels( sName, nWidth, nHeight) ;
}
//----------------------------------------------------------------------------
bool
Scene::GetTextureDimensions( const string& sName, double& dDimX, double& dDimY)
{
return m_TextMgr.GetDimensions( sName, dDimX, dDimY) ;
}
//----------------------------------------------------------------------------
bool
Scene::ChangeTextureDimensions( const string& sName, double dDimX, double dDimY)
{
return m_TextMgr.ChangeDimensions( sName, dDimX, dDimY) ;
}