VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.h@ 35263

Last change on this file since 35263 was 16074, checked in by vboxsync, 15 years ago

crOpenGL: fix guest app crashes with vertexarrays for multithreaded apps

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 876 bytes
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 ARRAY_SPU_H
8#define ARRAY_SPU_H
9
10#ifdef WINDOWS
11#define ARRAYSPU_APIENTRY __stdcall
12#else
13#define ARRAYSPU_APIENTRY
14#endif
15
16#include "cr_spu.h"
17#include "cr_glstate.h"
18
19void arrayspuSetVBoxConfiguration( void );
20
21typedef struct context_info_t ContextInfo;
22
23struct context_info_t {
24 CRContext *clientState; /* used to store client-side GL state */
25 GLint clientCtx; /* client context ID */
26};
27
28typedef struct {
29 int id;
30 int has_child;
31 CRContext *defaultctx;
32 SPUDispatchTable self, child, super;
33 int numContexts;
34 ContextInfo context[CR_MAX_CONTEXTS];
35} ArraySPU;
36
37extern ArraySPU array_spu;
38
39#ifdef CHROMIUM_THREADSAFE
40extern CRmutex _ArrayMutex;
41#endif
42
43#endif /* ARRAY_SPU_H */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use