7fd59977 |
1 | /*********************************************************************** |
2 | |
3 | FONCTION : |
4 | ---------- |
5 | File OpenGl_tsm_ws : |
6 | |
7 | |
8 | REMARQUES: |
9 | ---------- |
10 | |
11 | HISTORIQUE DES MODIFICATIONS : |
12 | -------------------------------- |
13 | xx-xx-xx : xxx ; Creation. |
14 | 02-07-96 : FMN ; Suppression WSWSHeight, WSWSWidth et WSType |
15 | 17-07-96 : FMN ; Ajout WSZbuffer |
16 | 24-04-97 : FMN ; Ajout displaylist pour le mode transient |
17 | 07-08-97 : PCT ; ajout texture environnante |
18 | 22-10-01 : SAV ; added flag WSDepthTest to control depth testing |
19 | 24-10-01 : SAV ; added flag WSGLLight to control GL_LIGHTING |
20 | particularly, this thechnique is used in triedron displaying. |
21 | |
22 | ************************************************************************/ |
23 | |
24 | #ifndef OPENGL_TSM_WS_H |
25 | #define OPENGL_TSM_WS_H |
26 | |
27 | #define G003 /* EUG 11-01-00 backfacing management |
28 | */ |
29 | |
30 | #define BUC61044 /* SAV ; added functionality to control gl depth testing |
31 | from higher API */ |
32 | #define BUC61045 /* SAV ; added functionality to control gl lighting |
33 | from higher API */ |
34 | #define OCC1188 /* SAV Added 23-12-02 background texture attribute */ |
35 | |
36 | #include <OpenGl_cmn_varargs.hxx> |
37 | |
38 | typedef enum |
39 | { |
40 | WSTextureEnv, WSSurfaceDetail, |
41 | WSFilters, WSWindow, WSWidth, WSHeight, WSDbuff, |
42 | WSViewStid, WSLights, WSViews, WSBackground, WSNeedsClear, WSHighlights, |
43 | WSDepthCues, WSTransparency, WSZbuffer, WSTransient, WSRetainMode, WSUpdateState, WSPixmap, WSGLXPixmap, WSDepth |
44 | #ifdef G003 |
45 | , WSBackfacing |
46 | #endif /* G003 */ |
47 | #ifdef BUC61044 |
48 | , WSDepthTest |
49 | #endif |
50 | #ifdef BUC61045 |
51 | , WSGLLight |
52 | #endif |
53 | #ifdef OCC1188 |
54 | , WSBgTexture |
55 | #endif |
56 | , WSBgGradient |
57 | } TWSAttri; |
58 | |
59 | extern TStatus TsmRegisterWsid( Tint ); |
60 | extern TStatus TsmSetWSAttri( Tint, TWSAttri, cmn_key_data ); |
61 | extern TStatus TsmGetWSAttri( Tint, TWSAttri, cmn_key_data ); |
62 | /* struct_id, size, ws, actual_size */ |
63 | extern TStatus TsmGetWSPosted( Tint, Tint, Tint*, Tint* ); |
64 | extern TStatus TsmUnregisterWsid( Tint wsid ); |
65 | extern TStatus TsmInitUpdateState(); |
66 | |
67 | #endif |