VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h@ 70877

最後變更 在這個檔案從70877是 69474,由 vboxsync 提交於 7 年 前

*: scm updates - header files should have 'svn:keywords=Id Revision' too (doesn't mean they have to use them).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 1.4 KB
 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved.
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#ifndef CR_STATE_FOG_H
8#define CR_STATE_FOG_H
9
10#include "state/cr_statetypes.h"
11
12#include <iprt/cdefs.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef struct {
19 CRbitvalue dirty[CR_MAX_BITARRAY];
20 CRbitvalue color[CR_MAX_BITARRAY];
21 CRbitvalue index[CR_MAX_BITARRAY];
22 CRbitvalue density[CR_MAX_BITARRAY];
23 CRbitvalue start[CR_MAX_BITARRAY];
24 CRbitvalue end[CR_MAX_BITARRAY];
25 CRbitvalue mode[CR_MAX_BITARRAY];
26 CRbitvalue enable[CR_MAX_BITARRAY];
27#ifdef CR_NV_fog_distance
28 CRbitvalue fogDistanceMode[CR_MAX_BITARRAY];
29#endif
30#ifdef CR_EXT_fog_coord
31 CRbitvalue fogCoordinateSource[CR_MAX_BITARRAY];
32#endif
33} CRFogBits;
34
35typedef struct {
36 GLcolorf color;
37 GLint index;
38 GLfloat density;
39 GLfloat start;
40 GLfloat end;
41 GLint mode;
42 GLboolean enable;
43#ifdef CR_NV_fog_distance
44 GLenum fogDistanceMode;
45#endif
46#ifdef CR_EXT_fog_coord
47 GLenum fogCoordinateSource;
48#endif
49} CRFogState;
50
51DECLEXPORT(void) crStateFogInit(CRContext *ctx);
52
53DECLEXPORT(void) crStateFogDiff(CRFogBits *bb, CRbitvalue *bitID,
54 CRContext *fromCtx, CRContext *toCtx);
55DECLEXPORT(void) crStateFogSwitch(CRFogBits *bb, CRbitvalue *bitID,
56 CRContext *fromCtx, CRContext *toCtx);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* CR_STATE_FOG_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette