VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu.h@ 78003

Last change on this file since 78003 was 76563, checked in by vboxsync, 6 years ago

Additions: Use GA_INCLUDED_ and variations_ as header guard prefixes with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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 GA_INCLUDED_SRC_common_crOpenGL_feedback_feedbackspu_h
8#define GA_INCLUDED_SRC_common_crOpenGL_feedback_feedbackspu_h
9#ifndef RT_WITHOUT_PRAGMA_ONCE
10# pragma once
11#endif
12
13#ifdef WINDOWS
14#define FEEDBACKSPU_APIENTRY __stdcall
15#else
16#define FEEDBACKSPU_APIENTRY
17#endif
18
19#include "cr_spu.h"
20#include "cr_timer.h"
21#include "cr_glstate.h"
22
23typedef struct context_info_t ContextInfo;
24
25struct context_info_t {
26 CRContext *clientState; /* used to store client-side GL state */
27 GLint clientCtx; /* client context ID */
28};
29
30typedef struct {
31 int id;
32 int has_child;
33 SPUDispatchTable self, child, super;
34
35 int render_mode;
36
37 int default_viewport;
38
39 CRCurrentStatePointers current;
40
41 CRContext *defaultctx;
42 int numContexts;
43 ContextInfo context[CR_MAX_CONTEXTS];
44
45#ifdef CHROMIUM_THREADSAFE
46 CRmutex mutex;
47#endif
48} feedbackSPU;
49
50extern feedbackSPU feedback_spu;
51
52extern SPUNamedFunctionTable _cr_feedback_table[];
53
54extern SPUOptions feedbackSPUOptions[];
55
56extern void feedbackspuGatherConfiguration( void );
57
58#endif /* !GA_INCLUDED_SRC_common_crOpenGL_feedback_feedbackspu_h */
Note: See TracBrowser for help on using the repository browser.

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