Files
EgtGraphics/SceneTexture.cpp
T
Dario Sassi 4a8c2c2e1b EgtGraphics 1.6j1 :
- aggiunto TextureMgr per gestire le textures caricate
- fatte modifiche per visualizzare gli oggetti con le textures (solo opachi).
2015-10-11 18:02:06 +00:00

71 lines
2.1 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : SceneTexture.cpp Data : 27.09.15 Versione : 1.6i8
// Contenuto : Implementazione della gestione texturesa della classe scena.
//
//
//
// Modifiche : 27.09.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "Scene.h"
using namespace std ;
//----------------------------------------------------------------------------
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)
{
return m_TextMgr.Exists( 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) ;
}