1 /***********************************************************************
5 File OpenGl_togl_depthtest :
10 HISTORIQUE DES MODIFICATIONS :
11 --------------------------------
12 22-10-01 : SAV ; Creation.
14 ************************************************************************/
16 /*----------------------------------------------------------------------*/
21 #include <OpenGl_tgl_all.hxx>
22 #include <OpenGl_tsm_ws.hxx>
23 #include <InterfaceGraphic_Graphic3d.hxx>
24 #include <InterfaceGraphic_Visual3d.hxx>
27 #define BUC61044 /* 25/10/01 SAV ; added functionality to control gl depth testing
29 #define BUC61045 /* 25/10/01 SAV ; added functionality to control gl lighting
33 void EXPORT call_togl_depthtest( CALL_DEF_VIEW *aview, Tint dFlag )
39 TsmSetWSAttri( aview->WsId, WSDepthTest, &key );
42 Tint EXPORT call_togl_isdepthtest( CALL_DEF_VIEW *aview )
46 TsmGetWSAttri( aview->WsId, WSDepthTest, &key );
53 void EXPORT call_togl_gllight( CALL_DEF_VIEW *aview, Tint dFlag )
59 TsmSetWSAttri( aview->WsId, WSGLLight, &key );
62 Tint EXPORT call_togl_isgllight( CALL_DEF_VIEW *aview )
66 TsmGetWSAttri( aview->WsId, WSGLLight, &key );