/[cvs]/api/include/d3dxerr.h
ViewVC logotype

Contents of /api/include/d3dxerr.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sun Jul 1 20:47:59 2001 UTC (23 years, 4 months ago) by bearsoft
Branch: lazy, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 //----------------------------------------------------------------------
2 //
3 // d3dxerr.h -- 0xC code definitions for the D3DX API
4 //
5 // Copyright (c) 1991-1999, Microsoft Corp. All rights reserved.
6 //
7 //----------------------------------------------------------------------
8 #ifndef __D3DXERR_H__
9 #define __D3DXERR_H__
10
11 //
12 //
13 // Values are 32 bit values layed out as follows:
14 //
15 // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
16 // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
17 // +---+-+-+-----------------------+-------------------------------+
18 // |Sev|C|R| Facility | Code |
19 // +---+-+-+-----------------------+-------------------------------+
20 //
21 // where
22 //
23 // Sev - is the severity code
24 //
25 // 00 - Success
26 // 01 - Informational
27 // 10 - Warning
28 // 11 - Error
29 //
30 // C - is the Customer code flag
31 //
32 // R - is a reserved bit
33 //
34 // Facility - is the facility code
35 //
36 // Code - is the facility's status code
37 //
38 //
39 // Define the facility codes
40 //
41 #define FACILITY_D3DX 0x877
42
43
44
45 //
46 // MessageId: D3DXERR_NOMEMORY
47 //
48 // MessageText:
49 //
50 // Out of memory.
51 //
52 #define D3DXERR_NOMEMORY ((HRESULT)0xC8770BB8L)
53
54
55 //
56 // MessageId: D3DXERR_NULLPOINTER
57 //
58 // MessageText:
59 //
60 // A NULL pointer was passed as a parameter.
61 //
62 #define D3DXERR_NULLPOINTER ((HRESULT)0xC8770BB9L)
63
64
65 //
66 // MessageId: D3DXERR_INVALIDD3DXDEVICEINDEX
67 //
68 // MessageText:
69 //
70 // The Device Index passed in is invalid.
71 //
72 #define D3DXERR_INVALIDD3DXDEVICEINDEX ((HRESULT)0xC8770BBAL)
73
74
75 //
76 // MessageId: D3DXERR_NODIRECTDRAWAVAILABLE
77 //
78 // MessageText:
79 //
80 // DirectDraw has not been created.
81 //
82 #define D3DXERR_NODIRECTDRAWAVAILABLE ((HRESULT)0xC8770BBBL)
83
84
85 //
86 // MessageId: D3DXERR_NODIRECT3DAVAILABLE
87 //
88 // MessageText:
89 //
90 // Direct3D has not been created.
91 //
92 #define D3DXERR_NODIRECT3DAVAILABLE ((HRESULT)0xC8770BBCL)
93
94
95 //
96 // MessageId: D3DXERR_NODIRECT3DDEVICEAVAILABLE
97 //
98 // MessageText:
99 //
100 // Direct3D device has not been created.
101 //
102 #define D3DXERR_NODIRECT3DDEVICEAVAILABLE ((HRESULT)0xC8770BBDL)
103
104
105 //
106 // MessageId: D3DXERR_NOPRIMARYAVAILABLE
107 //
108 // MessageText:
109 //
110 // Primary surface has not been created.
111 //
112 #define D3DXERR_NOPRIMARYAVAILABLE ((HRESULT)0xC8770BBEL)
113
114
115 //
116 // MessageId: D3DXERR_NOZBUFFERAVAILABLE
117 //
118 // MessageText:
119 //
120 // Z buffer has not been created.
121 //
122 #define D3DXERR_NOZBUFFERAVAILABLE ((HRESULT)0xC8770BBFL)
123
124
125 //
126 // MessageId: D3DXERR_NOBACKBUFFERAVAILABLE
127 //
128 // MessageText:
129 //
130 // Backbuffer has not been created.
131 //
132 #define D3DXERR_NOBACKBUFFERAVAILABLE ((HRESULT)0xC8770BC0L)
133
134
135 //
136 // MessageId: D3DXERR_COULDNTUPDATECAPS
137 //
138 // MessageText:
139 //
140 // Failed to update caps database after changing display mode.
141 //
142 #define D3DXERR_COULDNTUPDATECAPS ((HRESULT)0xC8770BC1L)
143
144
145 //
146 // MessageId: D3DXERR_NOZBUFFER
147 //
148 // MessageText:
149 //
150 // Could not create Z buffer.
151 //
152 #define D3DXERR_NOZBUFFER ((HRESULT)0xC8770BC2L)
153
154
155 //
156 // MessageId: D3DXERR_INVALIDMODE
157 //
158 // MessageText:
159 //
160 // Display mode is not valid.
161 //
162 #define D3DXERR_INVALIDMODE ((HRESULT)0xC8770BC3L)
163
164
165 //
166 // MessageId: D3DXERR_INVALIDPARAMETER
167 //
168 // MessageText:
169 //
170 // One or more of the parameters passed is invalid.
171 //
172 #define D3DXERR_INVALIDPARAMETER ((HRESULT)0xC8770BC4L)
173
174
175 //
176 // MessageId: D3DXERR_INITFAILED
177 //
178 // MessageText:
179 //
180 // D3DX failed to initialize itself.
181 //
182 #define D3DXERR_INITFAILED ((HRESULT)0xC8770BC5L)
183
184
185 //
186 // MessageId: D3DXERR_STARTUPFAILED
187 //
188 // MessageText:
189 //
190 // D3DX failed to start up.
191 //
192 #define D3DXERR_STARTUPFAILED ((HRESULT)0xC8770BC6L)
193
194
195 //
196 // MessageId: D3DXERR_D3DXNOTSTARTEDYET
197 //
198 // MessageText:
199 //
200 // D3DXInitialize() must be called first.
201 //
202 #define D3DXERR_D3DXNOTSTARTEDYET ((HRESULT)0xC8770BC7L)
203
204
205 //
206 // MessageId: D3DXERR_NOTINITIALIZED
207 //
208 // MessageText:
209 //
210 // D3DX is not initialized yet.
211 //
212 #define D3DXERR_NOTINITIALIZED ((HRESULT)0xC8770BC8L)
213
214
215 //
216 // MessageId: D3DXERR_FAILEDDRAWTEXT
217 //
218 // MessageText:
219 //
220 // Failed to render text to the surface.
221 //
222 #define D3DXERR_FAILEDDRAWTEXT ((HRESULT)0xC8770BC9L)
223
224
225 //
226 // MessageId: D3DXERR_BADD3DXCONTEXT
227 //
228 // MessageText:
229 //
230 // Bad D3DX context.
231 //
232 #define D3DXERR_BADD3DXCONTEXT ((HRESULT)0xC8770BCAL)
233
234
235 //
236 // MessageId: D3DXERR_CAPSNOTSUPPORTED
237 //
238 // MessageText:
239 //
240 // The requested device capabilities are not supported.
241 //
242 #define D3DXERR_CAPSNOTSUPPORTED ((HRESULT)0xC8770BCBL)
243
244
245 //
246 // MessageId: D3DXERR_UNSUPPORTEDFILEFORMAT
247 //
248 // MessageText:
249 //
250 // The image file format is unrecognized.
251 //
252 #define D3DXERR_UNSUPPORTEDFILEFORMAT ((HRESULT)0xC8770BCCL)
253
254
255 //
256 // MessageId: D3DXERR_IFLERROR
257 //
258 // MessageText:
259 //
260 // The image file loading library error.
261 //
262 #define D3DXERR_IFLERROR ((HRESULT)0xC8770BCDL)
263
264
265 //
266 // MessageId: D3DXERR_FAILEDGETCAPS
267 //
268 // MessageText:
269 //
270 // Could not obtain device caps.
271 //
272 #define D3DXERR_FAILEDGETCAPS ((HRESULT)0xC8770BCEL)
273
274
275 //
276 // MessageId: D3DXERR_CANNOTRESIZEFULLSCREEN
277 //
278 // MessageText:
279 //
280 // Resize does not work for full-screen.
281 //
282 #define D3DXERR_CANNOTRESIZEFULLSCREEN ((HRESULT)0xC8770BCFL)
283
284
285 //
286 // MessageId: D3DXERR_CANNOTRESIZENONWINDOWED
287 //
288 // MessageText:
289 //
290 // Resize does not work for non-windowed contexts.
291 //
292 #define D3DXERR_CANNOTRESIZENONWINDOWED ((HRESULT)0xC8770BD0L)
293
294
295 //
296 // MessageId: D3DXERR_FRONTBUFFERALREADYEXISTS
297 //
298 // MessageText:
299 //
300 // Front buffer already exists.
301 //
302 #define D3DXERR_FRONTBUFFERALREADYEXISTS ((HRESULT)0xC8770BD1L)
303
304
305 //
306 // MessageId: D3DXERR_FULLSCREENPRIMARYEXISTS
307 //
308 // MessageText:
309 //
310 // The app is using the primary in full-screen mode.
311 //
312 #define D3DXERR_FULLSCREENPRIMARYEXISTS ((HRESULT)0xC8770BD2L)
313
314
315 //
316 // MessageId: D3DXERR_GETDCFAILED
317 //
318 // MessageText:
319 //
320 // Could not get device context.
321 //
322 #define D3DXERR_GETDCFAILED ((HRESULT)0xC8770BD3L)
323
324
325 //
326 // MessageId: D3DXERR_BITBLTFAILED
327 //
328 // MessageText:
329 //
330 // Could not bitBlt.
331 //
332 #define D3DXERR_BITBLTFAILED ((HRESULT)0xC8770BD4L)
333
334
335 //
336 // MessageId: D3DXERR_NOTEXTURE
337 //
338 // MessageText:
339 //
340 // There is no surface backing up this texture.
341 //
342 #define D3DXERR_NOTEXTURE ((HRESULT)0xC8770BD5L)
343
344
345 //
346 // MessageId: D3DXERR_MIPLEVELABSENT
347 //
348 // MessageText:
349 //
350 // There is no such miplevel for this surface.
351 //
352 #define D3DXERR_MIPLEVELABSENT ((HRESULT)0xC8770BD6L)
353
354
355 //
356 // MessageId: D3DXERR_SURFACENOTPALETTED
357 //
358 // MessageText:
359 //
360 // The surface is not paletted.
361 //
362 #define D3DXERR_SURFACENOTPALETTED ((HRESULT)0xC8770BD7L)
363
364
365 //
366 // MessageId: D3DXERR_ENUMFORMATSFAILED
367 //
368 // MessageText:
369 //
370 // An error occured while enumerating surface formats.
371 //
372 #define D3DXERR_ENUMFORMATSFAILED ((HRESULT)0xC8770BD8L)
373
374
375 //
376 // MessageId: D3DXERR_COLORDEPTHTOOLOW
377 //
378 // MessageText:
379 //
380 // D3DX only supports color depths of 16 bit or greater.
381 //
382 #define D3DXERR_COLORDEPTHTOOLOW ((HRESULT)0xC8770BD9L)
383
384
385 //
386 // MessageId: D3DXERR_INVALIDFILEFORMAT
387 //
388 // MessageText:
389 //
390 // The file format is invalid.
391 //
392 #define D3DXERR_INVALIDFILEFORMAT ((HRESULT)0xC8770BDAL)
393
394
395 //
396 // MessageId: D3DXERR_NOMATCHFOUND
397 //
398 // MessageText:
399 //
400 // No suitable match found.
401 //
402 #define D3DXERR_NOMATCHFOUND ((HRESULT)0xC8770BDBL)
403
404
405
406 #endif //__D3DXERR_H__
407

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26