EgtGraphics 1.6v7 :

- migliorie varie per overload e const
- aggiunta GetPlaneSnapPoint.
This commit is contained in:
Dario Sassi
2016-10-29 15:48:19 +00:00
parent 415f15f71c
commit cde25533e7
9 changed files with 147 additions and 127 deletions
+6 -6
View File
@@ -273,7 +273,7 @@ Scene::ChooseGenPixelFormat( int nPfd, bool b2Buff, int nColorBits, int nDepthBi
//----------------------------------------------------------------------------
bool
Scene::MakeCurrent( void)
Scene::MakeCurrent( void) const
{
// se RC della scena non è definito, errore
if ( m_hRC == nullptr)
@@ -289,7 +289,7 @@ Scene::MakeCurrent( void)
//----------------------------------------------------------------------------
string
Scene::GetOpenGLInfo( void)
Scene::GetOpenGLInfo( void) const
{
string sInfo = "OpenGL " ;
@@ -316,7 +316,7 @@ Scene::GetOpenGLInfo( void)
//----------------------------------------------------------------------------
string
Scene::GetGLSLInfo( void)
Scene::GetGLSLInfo( void) const
{
string sInfo = "GLSL " ;
@@ -338,7 +338,7 @@ Scene::GetGLSLInfo( void)
//----------------------------------------------------------------------------
string
Scene::GetPixelFormatInfo( void)
Scene::GetPixelFormatInfo( void) const
{
string sInfo = "PixFmt " ;
@@ -819,7 +819,7 @@ Scene::Draw( void)
/*------------------------------------------------------------------------------------------*/
bool
Scene::Project( const Point3d& ptWorld, Point3d& ptView)
Scene::Project( const Point3d& ptWorld, Point3d& ptView) const
{
if ( ! MakeCurrent())
return false ;
@@ -845,7 +845,7 @@ Scene::Project( const Point3d& ptWorld, Point3d& ptView)
/*------------------------------------------------------------------------------------------*/
bool
Scene::UnProject( const Point3d& ptView, Point3d& ptWorld)
Scene::UnProject( const Point3d& ptView, Point3d& ptWorld) const
{
if ( ! MakeCurrent())
return false ;