VirtualBox

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

Last change on this file since 18847 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
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 */
Note: See TracBrowser for help on using the repository browser.

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