blob: a0e9f61f23b90bf6dd6f6fc0d734c98270c7f3cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/***********************************************************************
FONCTION :
----------
File OpenGl_togl_depthtest :
GL_DEPTH_TEST
+
GL_LIGHTING
HISTORIQUE DES MODIFICATIONS :
--------------------------------
22-10-01 : SAV ; Creation.
************************************************************************/
/*----------------------------------------------------------------------*/
/*
* Includes
*/
#include <OpenGl_tgl_all.hxx>
#include <OpenGl_tsm_ws.hxx>
#include <InterfaceGraphic_Graphic3d.hxx>
#include <InterfaceGraphic_Visual3d.hxx>
#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 */
#ifdef BUC61044
void EXPORT call_togl_depthtest( CALL_DEF_VIEW *aview, Tint dFlag )
{
CMN_KEY_DATA key;
key.ldata = dFlag;
TsmSetWSAttri( aview->WsId, WSDepthTest, &key );
}
Tint EXPORT call_togl_isdepthtest( CALL_DEF_VIEW *aview )
{
CMN_KEY_DATA key;
TsmGetWSAttri( aview->WsId, WSDepthTest, &key );
return key.ldata;
}
#endif
#ifdef BUC61045
void EXPORT call_togl_gllight( CALL_DEF_VIEW *aview, Tint dFlag )
{
CMN_KEY_DATA key;
key.ldata = dFlag;
TsmSetWSAttri( aview->WsId, WSGLLight, &key );
}
Tint EXPORT call_togl_isgllight( CALL_DEF_VIEW *aview )
{
CMN_KEY_DATA key;
TsmGetWSAttri( aview->WsId, WSGLLight, &key );
return key.ldata;
}
#endif
|