#define RIC120302 //GG Add a NEW SetWindow method which enable
// to connect a graphic widget and context to OGL.
-#define BUC61044 /* 25/10/01 SAV ; added functionality to control gl depth testing
- from higher API */
-#define BUC61045 /* 25/10/01 SAV ; added functionality to control gl lighting
- from higher API */
+//BUC61044 25/10/01 SAV ; added functionality to control gl depth testing from higher API
+//BUC61045 25/10/01 SAV ; added functionality to control gl lighting from higher API
-#define OCC1188 //SAV Added methods to set background image
+//OCC1188 SAV Added methods to set background image
/*----------------------------------------------------------------------*/
/*
const Aspect_FillMethod FillStyle,
const Standard_Boolean update )
{
-#ifdef OCC1188
if ( IsDeleted() )
return;
if ( !IsDefined() )
Update();
else if ( MyViewManager->UpdateMode() == Aspect_TOU_ASAP )
Update();
-#endif
}
void Visual3d_View::SetBgImageStyle( const Aspect_FillMethod FillStyle,
const Standard_Boolean update )
{
-#ifdef OCC1188
if ( IsDeleted() )
return;
if ( !IsDefined() )
Update();
else if ( MyViewManager->UpdateMode() == Aspect_TOU_ASAP )
Update();
-#endif
}
Aspect_Background Visual3d_View::Background () const {
void Visual3d_View::EnableDepthTest( const Standard_Boolean enable ) const
{
-#ifdef BUC61044
MyGraphicDriver->SetDepthTestEnabled( MyCView, enable );
-#endif
}
Standard_Boolean Visual3d_View::IsDepthTestEnabled() const
{
-#ifdef BUC61044
return MyGraphicDriver->IsDepthTestEnabled( MyCView );
-#else
- return Standard_True;
-#endif
}
void Visual3d_View::ReadDepths(const Standard_Integer x,
void Visual3d_View::EnableGLLight( const Standard_Boolean enable ) const
{
-#ifdef BUC61045
MyGraphicDriver->SetGLLightEnabled( MyCView, enable );
-#endif
}
Standard_Boolean Visual3d_View::IsGLLightEnabled() const
{
-#ifdef BUC61045
return MyGraphicDriver->IsGLLightEnabled( MyCView );
-#else
- return Standard_True;
-#endif
}
Standard_Boolean Visual3d_View::Export (const Standard_CString theFileName,