VirtualBox

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

最後變更 在這個檔案從64530是 16074,由 vboxsync 提交於 16 年 前

crOpenGL: fix guest app crashes with vertexarrays for multithreaded apps

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 876 位元組
 
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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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