6b76dad2fc
- aggiunte a Scene SetTextureMaxLinPixels e GetTextureImagePixels - aggiunte a TextureMgr SetTextureMaxLinPixels e GetImagePixels.
86 lines
2.6 KiB
C++
86 lines
2.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : SceneTexture.cpp Data : 27.09.15 Versione : 1.6i8
|
|
// Contenuto : Implementazione della gestione textures della classe scena.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 27.09.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
//--------------------------- Include ----------------------------------------
|
|
#include "stdafx.h"
|
|
#include "Scene.h"
|
|
|
|
using namespace std ;
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::SetTextureMaxLinPixels( int nMaxLinPix)
|
|
{
|
|
return m_TextMgr.SetTextureMaxLinPixels( nMaxLinPix) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::LoadTexture( const string& sName, const string& sFile,
|
|
double dMMxPix, double dDimX, double dDimY, int nRepeat)
|
|
{
|
|
return m_TextMgr.LoadTexture( sName, sFile, dMMxPix, dDimX, dDimY, nRepeat) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::UnloadTexture( const string& sName)
|
|
{
|
|
return m_TextMgr.UnloadTexture( sName) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::UnloadAllTextures( void)
|
|
{
|
|
return m_TextMgr.Clear() ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::ExistsTexture( const string& sName) const
|
|
{
|
|
return m_TextMgr.Exists( sName) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::GetTexturePixels( const string& sName, int& nWidth, int& nHeight) const
|
|
{
|
|
return m_TextMgr.GetPixels( sName, nWidth, nHeight) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::GetTextureImagePixels( const string& sName, int& nWidth, int& nHeight) const
|
|
{
|
|
return m_TextMgr.GetImagePixels( sName, nWidth, nHeight) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::GetTextureDimensions( const string& sName, double& dDimX, double& dDimY) const
|
|
{
|
|
return m_TextMgr.GetDimensions( sName, dDimX, dDimY) ;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
bool
|
|
Scene::ChangeTextureDimensions( const string& sName, double dDimX, double dDimY)
|
|
{
|
|
return m_TextMgr.ChangeDimensions( sName, dDimX, dDimY) ;
|
|
}
|
|
|
|
|