diff --git a/EGrScene.h b/EGrScene.h index c1a3b10..838f7dd 100644 --- a/EGrScene.h +++ b/EGrScene.h @@ -115,6 +115,9 @@ class IEGrScene virtual bool GetGridSnapPointZ( bool bSketch, const Point3d& ptWin, const Point3d& ptGrid, Point3d& ptSel) = 0 ; virtual int GetLastSnapId( void) = 0 ; virtual bool GetLastSnapDir( Vector3d& vtDir) = 0 ; + // Texture + virtual bool LoadTexture( const std::string& sName, const std::string& sFile, + double dDimX, double dDimY, bool bRepeat) = 0 ; } ; //----------------------------------------------------------------------------- diff --git a/EInAPI.h b/EInAPI.h index fb5217c..5b53244 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -520,6 +520,8 @@ EIN_EXPORT BOOL __stdcall EgtGetView( int* pnDir) ; EIN_EXPORT BOOL __stdcall EgtGetGenericView( double* pdAngVertDeg, double* pdAngHorizDeg) ; EIN_EXPORT BOOL __stdcall EgtProjectPoint( const double ptP[3], double ptWin[3]) ; EIN_EXPORT BOOL __stdcall EgtUnProjectPoint( int nWinX, int nWinY, double ptP[3]) ; +EIN_EXPORT BOOL __stdcall EgtLoadTexture( const wchar_t* wsName, const wchar_t* wsFile, + double dDimX, double dDimY, BOOL bRepeat) ; // Geo Base EIN_EXPORT BOOL __stdcall EgtVectorNormalize( double* pdX, double* pdY, double* pdZ, double dEps = 0.001) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 1f8ae85..45508d3 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -564,6 +564,8 @@ EXE_EXPORT bool ExeGetView( int* pnDir) ; EXE_EXPORT bool ExeGetGenericView( double* pdAngVertDeg, double* pdAngHorizDeg) ; EXE_EXPORT bool ExeProjectPoint( const Point3d& ptP, Point3d& ptWin) ; EXE_EXPORT bool ExeUnProjectPoint( int nWinX, int nWinY, Point3d& ptP) ; +EXE_EXPORT bool ExeLoadTexture( const std::string& sName, const std::string& sFile, + double dDimX, double dDimY, bool bRepeat) ; // Messages EXE_EXPORT bool ExeLoadMessages( const std::string& sMsgFilePath) ;