EgtInterface 1.6j1 :
- aggiunte funzioni per foto e textures.
This commit is contained in:
@@ -352,3 +352,58 @@ __stdcall EgtRemoveInfo( int nId, const wchar_t* wsKey)
|
||||
{
|
||||
return ( ExeRemoveInfo( nId, wstrztoA( wsKey)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetTextureName( int nId, const wchar_t* wsTxrName)
|
||||
{
|
||||
return ( ExeSetTextureName( nId, wstrztoA( wsTxrName)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetTextureFrame( int nId, const double vOrig[3],
|
||||
const double vX[3], const double vY[3], const double vZ[3], int nRefType)
|
||||
{
|
||||
Frame3d frFrame ;
|
||||
if ( ! frFrame.Set( vOrig, vX, vY, vZ))
|
||||
return GDB_ID_NULL ;
|
||||
return ( ExeSetTextureFrame( nId, frFrame, nRefType) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRemoveTextureData( int nId)
|
||||
{
|
||||
return ( ExeRemoveTextureData( nId) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTextureName( int nId, wchar_t*& wsTxrName)
|
||||
{
|
||||
string sTemp ;
|
||||
if ( ! ExeGetTextureName( nId, sTemp))
|
||||
return FALSE ;
|
||||
wsTxrName = _wcsdup( stringtoW( sTemp)) ;
|
||||
return (( wsTxrName == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTextureFrame( int nId, int nRefId, double vOrig[3], double vX[3], double vY[3], double vZ[3])
|
||||
{
|
||||
// recupero il frame
|
||||
Frame3d frFrame ;
|
||||
if ( ! ExeGetTextureFrame( nId, nRefId, frFrame))
|
||||
return FALSE ;
|
||||
// assegno l'origine
|
||||
VEC_FROM_3D( vOrig, frFrame.Orig())
|
||||
// assegno il versore X
|
||||
VEC_FROM_3D( vX, frFrame.VersX())
|
||||
// assegno il versore Y
|
||||
VEC_FROM_3D( vY, frFrame.VersY())
|
||||
// assegno il versore Z
|
||||
VEC_FROM_3D( vZ, frFrame.VersZ())
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user