EgtIntrerface :
- estese e aggiornate interfacce.
This commit is contained in:
+45
-2
@@ -424,7 +424,50 @@ __stdcall EgtUnProjectPoint( int nWinX, int nWinY, double ptP[3])
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtLoadTexture( const wchar_t* wsName, const wchar_t* wsFile,
|
||||
double dDimX, double dDimY, BOOL bRepeat)
|
||||
double dMMxPix, double dDimX, double dDimY, BOOL bRepeat)
|
||||
{
|
||||
return ( ExeLoadTexture( wstrztoA( wsName), wstrztoA( wsFile), dDimX, dDimY, ( bRepeat != FALSE)) ? TRUE : FALSE) ;
|
||||
return ( ExeLoadTexture( wstrztoA( wsName), wstrztoA( wsFile),
|
||||
dMMxPix, dDimX, dDimY, ( bRepeat != FALSE)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtUnloadTexture( const wchar_t* wsName)
|
||||
{
|
||||
return ( ExeUnloadTexture( wstrztoA( wsName)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTexturePixels( const wchar_t* wsName, int* pnWidth, int* pnHeight)
|
||||
{
|
||||
int nWidth, nHeight ;
|
||||
if ( ! ExeGetTexturePixels( 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)
|
||||
{
|
||||
double dDimX, dDimY ;
|
||||
if ( ! ExeGetTextureDimensions( wstrztoA( wsName), dDimX, dDimY))
|
||||
return FALSE ;
|
||||
if ( pdDimX != nullptr)
|
||||
*pdDimX = dDimX ;
|
||||
if ( pdDimY != nullptr)
|
||||
*pdDimY = dDimY ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtChangeTextureDimensions( const wchar_t* wsName, double dDimX, double dDimY)
|
||||
{
|
||||
return ( ExeChangeTextureDimensions( wstrztoA( wsName), dDimX, dDimY) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user