VirtualBox

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

Last change on this file since 28347 was 19099, checked in by vboxsync, 16 years ago

crOpenGL: fix multicontext crashes (public bug #3762)

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

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