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 |
|
---|
19 | void arrayspuSetVBoxConfiguration( void );
|
---|
20 |
|
---|
21 | typedef struct context_info_t ContextInfo;
|
---|
22 |
|
---|
23 | struct context_info_t {
|
---|
24 | CRContext *clientState; /* used to store client-side GL state */
|
---|
25 | GLint clientCtx; /* client context ID */
|
---|
26 | };
|
---|
27 |
|
---|
28 | typedef 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 |
|
---|
37 | extern ArraySPU array_spu;
|
---|
38 |
|
---|
39 | #ifdef CHROMIUM_THREADSAFE
|
---|
40 | extern CRmutex _ArrayMutex;
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #endif /* ARRAY_SPU_H */
|
---|