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_FEEDBACK_H
|
---|
8 | #define CR_STATE_FEEDBACK_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 | #define MAX_NAME_STACK_DEPTH 64
|
---|
19 |
|
---|
20 | typedef struct {
|
---|
21 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
22 | } CRFeedbackBits;
|
---|
23 |
|
---|
24 | typedef struct {
|
---|
25 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
26 | } CRSelectionBits;
|
---|
27 |
|
---|
28 | typedef struct {
|
---|
29 | GLenum type;
|
---|
30 | GLuint mask;
|
---|
31 | GLfloat *buffer;
|
---|
32 | GLuint bufferSize;
|
---|
33 | GLuint count;
|
---|
34 | } CRFeedbackState;
|
---|
35 |
|
---|
36 | typedef struct {
|
---|
37 | GLuint *buffer;
|
---|
38 | GLuint bufferSize;
|
---|
39 | GLuint bufferCount;
|
---|
40 | GLuint hits;
|
---|
41 | GLuint nameStackDepth;
|
---|
42 | GLuint nameStack[MAX_NAME_STACK_DEPTH];
|
---|
43 | GLboolean hitFlag;
|
---|
44 | GLfloat hitMinZ, hitMaxZ;
|
---|
45 | } CRSelectionState;
|
---|
46 |
|
---|
47 | extern DECLEXPORT(void) crStateFeedbackDiff(CRFeedbackState *from, CRFeedbackState *to,
|
---|
48 | CRFeedbackBits *bb, CRbitvalue *bitID);
|
---|
49 | extern DECLEXPORT(void) crStateFeedbackSwitch(CRFeedbackBits *bb, CRbitvalue *bitID,
|
---|
50 | CRFeedbackState *from, CRFeedbackState *to);
|
---|
51 |
|
---|
52 | #ifdef __cplusplus
|
---|
53 | }
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #endif /* CR_STATE_FEEDBACK_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.