VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/state/cr_feedback.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.2 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_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
15extern "C" {
16#endif
17
18#define MAX_NAME_STACK_DEPTH 64
19
20typedef struct {
21 CRbitvalue dirty[CR_MAX_BITARRAY];
22} CRFeedbackBits;
23
24typedef struct {
25 CRbitvalue dirty[CR_MAX_BITARRAY];
26} CRSelectionBits;
27
28typedef struct {
29 GLenum type;
30 GLuint mask;
31 GLfloat *buffer;
32 GLuint bufferSize;
33 GLuint count;
34} CRFeedbackState;
35
36typedef 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
47extern DECLEXPORT(void) crStateFeedbackDiff(CRFeedbackState *from, CRFeedbackState *to,
48 CRFeedbackBits *bb, CRbitvalue *bitID);
49extern 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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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