EgtGraphics :
- migliorata gestione textures.
This commit is contained in:
+34
-3
@@ -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) ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user