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.2 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_STENCIL_H
|
---|
8 | #define CR_STATE_STENCIL_H
|
---|
9 |
|
---|
10 | #include "cr_glstate.h"
|
---|
11 | #include "state/cr_statetypes.h"
|
---|
12 |
|
---|
13 | #include <iprt/cdefs.h>
|
---|
14 |
|
---|
15 | #ifdef __cplusplus
|
---|
16 | extern "C" {
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | typedef struct {
|
---|
20 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
21 | CRbitvalue enable[CR_MAX_BITARRAY];
|
---|
22 | CRbitvalue func[CR_MAX_BITARRAY];
|
---|
23 | CRbitvalue op[CR_MAX_BITARRAY];
|
---|
24 | CRbitvalue clearValue[CR_MAX_BITARRAY];
|
---|
25 | CRbitvalue writeMask[CR_MAX_BITARRAY];
|
---|
26 | } CRStencilBits;
|
---|
27 |
|
---|
28 | typedef struct {
|
---|
29 | GLboolean stencilTest;
|
---|
30 | GLenum func;
|
---|
31 | GLint mask;
|
---|
32 | GLint ref;
|
---|
33 | GLenum fail;
|
---|
34 | GLenum passDepthFail;
|
---|
35 | GLenum passDepthPass;
|
---|
36 | GLint clearValue;
|
---|
37 | GLint writeMask;
|
---|
38 | } CRStencilState;
|
---|
39 |
|
---|
40 | DECLEXPORT(void) crStateStencilInit(CRContext *ctx);
|
---|
41 |
|
---|
42 | DECLEXPORT(void) crStateStencilDiff(CRStencilBits *bb, CRbitvalue *bitID,
|
---|
43 | CRContext *fromCtx, CRContext *toCtx);
|
---|
44 | DECLEXPORT(void) crStateStencilSwitch(CRStencilBits *bb, CRbitvalue *bitID,
|
---|
45 | CRContext *fromCtx, CRContext *toCtx);
|
---|
46 |
|
---|
47 | #ifdef __cplusplus
|
---|
48 | }
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #endif /* CR_STATE_STENCIL_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.