EgtGraphics 2.1i2 :

- aggiunta a Scene funzione GetBackground.
This commit is contained in:
Dario Sassi
2019-09-19 13:46:57 +00:00
parent a994ffbe0c
commit 97a0156f25
3 changed files with 11 additions and 0 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -80,6 +80,7 @@ class Scene : public IEGrScene
bool RedrawWindow( void) override ;
bool Resize( int nW, int nH) override ;
bool SetBackground( Color colBackTop, Color colBackBottom) override ;
bool GetBackground( Color& colBackTop, Color& colBackBottom) override ;
bool Draw( void) override ;
bool Project( const Point3d& ptWorld, Point3d& ptView) const override ;
bool UnProject( const Point3d& ptView, Point3d& ptWorld) const override ;
+10
View File
@@ -543,6 +543,16 @@ Scene::SetBackground( Color colBackTop, Color colBackBottom)
return true ;
}
//----------------------------------------------------------------------------
bool
Scene::GetBackground( Color& colBackTop, Color& colBackBottom)
{
colBackTop = m_colBackTop ;
colBackBottom = m_colBackBottom ;
return true ;
}
//----------------------------------------------------------------------------
bool
Scene::Background( void)