Last change
on this file since 22509 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_POLYGON_H
|
---|
8 | #define CR_STATE_POLYGON_H
|
---|
9 |
|
---|
10 | #include "state/cr_statetypes.h"
|
---|
11 |
|
---|
12 | #include <iprt/cdefs.h>
|
---|
13 |
|
---|
14 | #ifdef __cplusplus
|
---|
15 | extern "C" {
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | typedef struct {
|
---|
19 | CRbitvalue enable[CR_MAX_BITARRAY];
|
---|
20 | CRbitvalue offset[CR_MAX_BITARRAY];
|
---|
21 | CRbitvalue mode[CR_MAX_BITARRAY];
|
---|
22 | CRbitvalue stipple[CR_MAX_BITARRAY];
|
---|
23 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
24 | } CRPolygonBits;
|
---|
25 |
|
---|
26 | typedef struct {
|
---|
27 | GLboolean polygonSmooth;
|
---|
28 | GLboolean polygonOffsetFill;
|
---|
29 | GLboolean polygonOffsetLine;
|
---|
30 | GLboolean polygonOffsetPoint;
|
---|
31 | GLboolean polygonStipple;
|
---|
32 | GLboolean cullFace;
|
---|
33 | GLfloat offsetFactor;
|
---|
34 | GLfloat offsetUnits;
|
---|
35 | GLenum cullFaceMode;
|
---|
36 | GLenum frontFace;
|
---|
37 | GLenum frontMode;
|
---|
38 | GLenum backMode;
|
---|
39 | GLint stipple[32];
|
---|
40 | } CRPolygonState;
|
---|
41 |
|
---|
42 | DECLEXPORT(void) crStatePolygonInit(CRContext *ctx);
|
---|
43 |
|
---|
44 | DECLEXPORT(void) crStatePolygonDiff(CRPolygonBits *bb, CRbitvalue *bitID,
|
---|
45 | CRContext *fromCtx, CRContext *toCtx);
|
---|
46 | DECLEXPORT(void) crStatePolygonSwitch(CRPolygonBits *bb, CRbitvalue *bitID,
|
---|
47 | CRContext *fromCtx, CRContext *toCtx);
|
---|
48 |
|
---|
49 | #ifdef __cplusplus
|
---|
50 | }
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.