VirtualBox

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

Last change on this file since 78581 was 78375, checked in by vboxsync, 6 years ago

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

  • 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_glstate.h"
21
22typedef struct context_info_t ContextInfo;
23
24struct context_info_t {
25 CRContext *clientState; /* used to store client-side GL state */
26 GLint clientCtx; /* client context ID */
27};
28
29typedef struct {
30 int id;
31 int has_child;
32 SPUDispatchTable self, child, super;
33
34 int render_mode;
35
36 int default_viewport;
37
38 CRCurrentStatePointers current;
39
40 CRContext *defaultctx;
41 int numContexts;
42 ContextInfo context[CR_MAX_CONTEXTS];
43
44 CRmutex mutex;
45
46 /** The state tracker state. */
47 CRStateTracker StateTracker;
48} feedbackSPU;
49
50extern feedbackSPU feedback_spu;
51
52extern SPUNamedFunctionTable _cr_feedback_table[];
53
54extern void feedbackspuGatherConfiguration( void );
55
56#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