EgtInterface 1.8h2 :

- aggiunte EgtGetRawPartCenter, EgtGetRawPartBBox
- aggiunte EgtSetTextureMaxLinPixels e EgtGetTextureImagePixels
- aggiunte EgtAddPhoto2, EgtMovePhoto, EgtRotatePhoto e EgtGetPhotoImagePixels
- eliminata EgtGetPhotoMMxPixel.
This commit is contained in:
Dario Sassi
2017-08-07 18:28:04 +00:00
parent 8a546aa09f
commit 52912a5e6c
4 changed files with 81 additions and 9 deletions
+21
View File
@@ -462,6 +462,13 @@ __stdcall EgtUnProjectPoint( int nWinX, int nWinY, double ptP[3])
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetTextureMaxLinPixels( int nMaxLinPix)
{
return ( ExeSetTextureMaxLinPixels( nMaxLinPix) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtLoadTexture( const wchar_t* wsName, const wchar_t* wsFile,
@@ -492,6 +499,20 @@ __stdcall EgtGetTexturePixels( const wchar_t* wsName, int* pnWidth, int* pnHeigh
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetTextureImagePixels( const wchar_t* wsName, int* pnWidth, int* pnHeight)
{
int nWidth, nHeight ;
if ( ! ExeGetTextureImagePixels( wstrztoA( wsName), nWidth, nHeight))
return FALSE ;
if ( pnWidth != nullptr)
*pnWidth = nWidth ;
if ( pnHeight != nullptr)
*pnHeight = nHeight ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetTextureDimensions( const wchar_t* wsName, double* pdDimX, double* pdDimY)