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_array_arrayspu_h
|
---|
8 | #define GA_INCLUDED_SRC_common_crOpenGL_array_arrayspu_h
|
---|
9 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
10 | # pragma once
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #ifdef WINDOWS
|
---|
14 | #define ARRAYSPU_APIENTRY __stdcall
|
---|
15 | #else
|
---|
16 | #define ARRAYSPU_APIENTRY
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | #include "cr_spu.h"
|
---|
20 | #include "cr_glstate.h"
|
---|
21 |
|
---|
22 | void arrayspuSetVBoxConfiguration( void );
|
---|
23 |
|
---|
24 | typedef struct context_info_t ContextInfo;
|
---|
25 |
|
---|
26 | struct context_info_t {
|
---|
27 | CRContext *clientState; /* used to store client-side GL state */
|
---|
28 | GLint clientCtx; /* client context ID */
|
---|
29 | };
|
---|
30 |
|
---|
31 | typedef struct {
|
---|
32 | int id;
|
---|
33 | int has_child;
|
---|
34 | CRContext *defaultctx;
|
---|
35 | SPUDispatchTable self, child, super;
|
---|
36 | int numContexts;
|
---|
37 | ContextInfo context[CR_MAX_CONTEXTS];
|
---|
38 | } ArraySPU;
|
---|
39 |
|
---|
40 | extern ArraySPU array_spu;
|
---|
41 |
|
---|
42 | #ifdef CHROMIUM_THREADSAFE
|
---|
43 | extern CRmutex _ArrayMutex;
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | #endif /* !GA_INCLUDED_SRC_common_crOpenGL_array_arrayspu_h */
|
---|