740392c456
- aggiunte funzioni per gestire dati per textures su oggetti - aggiornato formato Nge per salvare questi dati.
46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : TextureData.h Data : 04.10.15 Versione : 1.6j1
|
|
// Contenuto : Dichiarazione della classe TextureData.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 04.10.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGdbConst.h"
|
|
#include "/EgtDev/Include/EGkFrame3d.h"
|
|
#include "/EgtDev/Include/EgtStringBase.h"
|
|
|
|
class NgeWriter ;
|
|
class NgeReader ;
|
|
class GeomDB ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class TextureData
|
|
{
|
|
public :
|
|
TextureData* Clone( void) const
|
|
{ TextureData* pTxrData ;
|
|
// alloco oggetto
|
|
pTxrData = new(std::nothrow) TextureData ;
|
|
if ( pTxrData != nullptr)
|
|
*pTxrData = *this ;
|
|
return pTxrData ; }
|
|
bool Dump( const GeomDB& GDB, std::string& sOut, bool bMM = true, const char* szNewLine = "\n") const ;
|
|
bool Save( NgeWriter& ngeOut) const ;
|
|
bool Load( NgeReader& ngeIn) ;
|
|
bool SetName( const std::string& sTxrName) ;
|
|
bool SetFrame( const Frame3d& frTxrRef) ;
|
|
bool GetName( std::string& sTxrName) const ;
|
|
bool GetFrame( Frame3d& frTxrRef) const ;
|
|
|
|
private :
|
|
std::string m_sTxrName ; // Nome della texture
|
|
Frame3d m_frTxrRef ; // Riferimento della texture
|
|
} ; |