VirtualBox

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

Last change on this file since 78186 was 76563, checked in by vboxsync, 6 years ago

Additions: Use GA_INCLUDED_ and variations_ as header guard prefixes with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.0 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 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
22void arrayspuSetVBoxConfiguration( void );
23
24typedef struct context_info_t ContextInfo;
25
26struct context_info_t {
27 CRContext *clientState; /* used to store client-side GL state */
28 GLint clientCtx; /* client context ID */
29};
30
31typedef 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
40extern ArraySPU array_spu;
41
42#ifdef CHROMIUM_THREADSAFE
43extern CRmutex _ArrayMutex;
44#endif
45
46#endif /* !GA_INCLUDED_SRC_common_crOpenGL_array_arrayspu_h */
Note: See TracBrowser for help on using the repository browser.

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