doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nv_control.h
Go to the documentation of this file.
1 #ifndef __NVCONTROL_H
2 #define __NVCONTROL_H
3 
4 #define NV_CONTROL_ERRORS 0
5 #define NV_CONTROL_EVENTS 1
6 #define NV_CONTROL_NAME "NV-CONTROL"
7 
8 #define NV_CONTROL_MAJOR 1
9 #define NV_CONTROL_MINOR 6
10 
11 #define X_nvCtrlQueryExtension 0
12 #define X_nvCtrlIsNv 1
13 #define X_nvCtrlQueryAttribute 2
14 #define X_nvCtrlSetAttribute 3
15 #define X_nvCtrlQueryStringAttribute 4
16 #define X_nvCtrlQueryValidAttributeValues 5
17 #define X_nvCtrlSelectNotify 6
18 #define X_nvCtrlLastRequest (X_nvCtrlSelectNotify + 1)
19 
20 typedef struct {
21  CARD8 reqType;
22  CARD8 nvReqType;
23  CARD16 length B16;
25 #define sz_xnvCtrlQueryExtensionReq 4
26 
27 typedef struct {
28  BYTE type; /* X_Reply */
29  CARD8 padb1;
30  CARD16 sequenceNumber B16;
31  CARD32 length B32;
32  CARD16 major B16;
33  CARD16 minor B16;
34  CARD32 padl4 B32;
35  CARD32 padl5 B32;
36  CARD32 padl6 B32;
37  CARD32 padl7 B32;
38  CARD32 padl8 B32;
40 #define sz_xnvCtrlQueryExtensionReply 32
41 
42 typedef struct {
43  CARD8 reqType;
44  CARD8 nvReqType;
45  CARD16 length B16;
46  CARD32 screen B32;
48 #define sz_xnvCtrlIsNvReq 8
49 
50 typedef struct {
51  BYTE type; /* X_Reply */
52  CARD8 padb1;
53  CARD16 sequenceNumber B16;
54  CARD32 length B32;
55  CARD32 isnv B32;
56  CARD32 padl4 B32;
57  CARD32 padl5 B32;
58  CARD32 padl6 B32;
59  CARD32 padl7 B32;
60  CARD32 padl8 B32;
62 #define sz_xnvCtrlIsNvReply 32
63 
64 typedef struct {
65  CARD8 reqType;
66  CARD8 nvReqType;
67  CARD16 length B16;
68  CARD32 screen B32;
69  CARD32 display_mask B32;
70  CARD32 attribute B32;
72 #define sz_xnvCtrlQueryAttributeReq 16
73 
74 typedef struct {
75  BYTE type;
76  BYTE pad0;
77  CARD16 sequenceNumber B16;
78  CARD32 length B32;
79  CARD32 flags B32;
81  CARD32 pad4 B32;
82  CARD32 pad5 B32;
83  CARD32 pad6 B32;
84  CARD32 pad7 B32;
86 #define sz_xnvCtrlQueryAttributeReply 32
87 
88 typedef struct {
89  CARD8 reqType;
90  CARD8 nvReqType;
91  CARD16 length B16;
92  CARD32 screen B32;
93  CARD32 display_mask B32;
94  CARD32 attribute B32;
97 #define sz_xnvCtrlSetAttributeReq 20
98 
99 typedef struct {
100  CARD8 reqType;
101  CARD8 nvReqType;
102  CARD16 length B16;
103  CARD32 screen B32;
104  CARD32 display_mask B32;
105  CARD32 attribute B32;
107 #define sz_xnvCtrlQueryStringAttributeReq 16
108 
109 /*
110  * CtrlQueryStringAttribute reply struct
111  * n indicates the length of the string.
112  */
113 typedef struct {
114  BYTE type;
115  BYTE pad0;
116  CARD16 sequenceNumber B16;
117  CARD32 length B32;
118  CARD32 flags B32;
119  CARD32 n B32;
120  CARD32 pad4 B32;
121  CARD32 pad5 B32;
122  CARD32 pad6 B32;
123  CARD32 pad7 B32;
125 #define sz_xnvCtrlQueryStringAttributeReply 32
126 
127 typedef struct {
128  CARD8 reqType;
129  CARD8 nvReqType;
130  CARD16 length B16;
131  CARD32 screen B32;
132  CARD32 display_mask B32;
133  CARD32 attribute B32;
135 #define sz_xnvCtrlQueryValidAttributeValuesReq 16
136 
137 typedef struct {
138  BYTE type;
139  BYTE pad0;
140  CARD16 sequenceNumber B16;
141  CARD32 length B32;
142  CARD32 flags B32;
143  INT32 attr_type B32;
146  CARD32 bits B32;
147  CARD32 perms B32;
149 #define sz_xnvCtrlQueryValidAttributeValuesReply 32
150 
151 typedef struct {
152  CARD8 reqType;
153  CARD8 nvReqType;
154  CARD16 length B16;
155  CARD32 screen B32;
156  CARD16 notifyType B16;
157  CARD16 onoff B16;
159 #define sz_xnvCtrlSelectNotifyReq 12
160 
161 typedef struct {
162  union {
163  struct {
164  BYTE type;
165  BYTE detail;
166  CARD16 sequenceNumber B16;
167  } u;
168  struct {
169  BYTE type;
170  BYTE detail;
171  CARD16 sequenceNumber B16;
172  Time time B32;
173  CARD32 screen B32;
174  CARD32 display_mask B32;
175  CARD32 attribute B32;
176  CARD32 value B32;
177  CARD32 pad0 B32;
178  CARD32 pad1 B32;
179  } attribute_changed;
180  } u;
181 } xnvctrlEvent;
182 
183 
184 #endif /* __NVCONTROL_H */
CARD32 pad0 B32
Definition: nv_control.h:177
CARD16 sequenceNumber B16
Definition: nv_control.h:53
#define min(a, b)
GLsizei const GLfloat * value
Definition: glext.h:3614
CARD32 display_mask B32
Definition: nv_control.h:174
CARD32 screen B32
Definition: nv_control.h:173
CARD32 attribute B32
Definition: nv_control.h:70
GLenum GLsizei n
Definition: glext.h:3705
CARD32 display_mask B32
Definition: nv_control.h:93
CARD32 display_mask B32
Definition: nv_control.h:104
GLuint GLuint GLsizei GLenum type
Definition: glext.h:2845
long INT32
Definition: jmorecfg.h:154
CARD32 screen B32
Definition: nv_control.h:155
CARD16 length B16
Definition: nv_control.h:154
CARD32 display_mask B32
Definition: nv_control.h:69
CARD16 sequenceNumber B16
Definition: nv_control.h:77
CARD16 length B16
Definition: nv_control.h:91
CARD32 padl4 B32
Definition: nv_control.h:56
CARD32 padl6 B32
Definition: nv_control.h:58
CARD32 pad1 B32
Definition: nv_control.h:178
CARD16 sequenceNumber B16
Definition: nv_control.h:30
CARD16 notifyType B16
Definition: nv_control.h:156
CARD32 screen B32
Definition: nv_control.h:92
CARD16 sequenceNumber B16
Definition: nv_control.h:166
Time time B32
Definition: nv_control.h:172
#define bits
Definition: Unzip.cpp:3797
CARD32 isnv B32
Definition: nv_control.h:55
CARD32 value B32
Definition: nv_control.h:176
GLsizei const GLcharARB const GLint * length
Definition: glext.h:3599
CARD16 sequenceNumber B16
Definition: nv_control.h:116
CARD32 padl5 B32
Definition: nv_control.h:57
CARD8 nvReqType
Definition: nv_control.h:44
CARD32 length B32
Definition: nv_control.h:54
CARD32 padl8 B32
Definition: nv_control.h:60
CARD32 screen B32
Definition: nv_control.h:46
#define max(x, y)
Definition: os.h:70
CARD16 length B16
Definition: nv_control.h:45
CARD32 attribute B32
Definition: nv_control.h:94
CARD32 attribute B32
Definition: nv_control.h:175
CARD32 padl7 B32
Definition: nv_control.h:59