renderspu.h revision aeb7d3465f6e399a9719a21364e9a483302102df
bc3fd4bc72c31421ca9cccc6e50f92f0fa841a5bJnRouvignac/* Copyright (c) 2001, Stanford University
bc3fd4bc72c31421ca9cccc6e50f92f0fa841a5bJnRouvignac * All rights reserved.
bc3fd4bc72c31421ca9cccc6e50f92f0fa841a5bJnRouvignac * See the file LICENSE.txt for information on redistributing this software.
bc3fd4bc72c31421ca9cccc6e50f92f0fa841a5bJnRouvignac * Visual info
bc3fd4bc72c31421ca9cccc6e50f92f0fa841a5bJnRouvignactypedef struct {
#ifdef GLX_VERSION_1_3
} VisualInfo;
char *title;
#if defined(WINDOWS)
int nvSwapGroup;
#ifdef USE_OSMESA
int in_buffer_width;
int in_buffer_height;
} WindowInfo;
typedef struct _ContextInfo {
#if defined(WINDOWS)
char *extensionString;
} ContextInfo;
} Barrier;
int id;
unsigned int window_id;
unsigned int context_id;
char *window_title;
int default_visual;
int use_L2;
#if defined(GLX)
int try_direct;
int force_direct;
int sync;
int render_to_app_window;
int crut_drawable;
int resizable;
int borderless;
int nvSwapGroup;
int ignore_papi;
int ignore_window_moves;
int use_glxchoosevisual;
int draw_bbox;
int gather_port;
int gather_userbuf_size;
int numVisuals;
#ifndef CHROMIUM_THREADSAFE
int swap_mtu;
char *swap_master_url;
#ifdef USE_OSMESA
int use_osmesa;
#ifdef RT_OS_WINDOWS
#ifdef DARWIN
} RenderSPU;
#ifdef RT_OS_WINDOWS
typedef struct _VBOX_RENDERSPU_DESTROY_WINDOW {
extern unsigned int render_spu_parent_window_id;
#ifdef CHROMIUM_THREADSAFE
extern GLboolean renderspu_SystemCreateContext( VisualInfo *visual, ContextInfo *context, ContextInfo *sharedContext );
extern GLboolean renderspu_SystemCreateWindow( VisualInfo *visual, GLboolean showIt, WindowInfo *window );
extern GLboolean renderspu_SystemVBoxCreateWindow( VisualInfo *visual, GLboolean showIt, WindowInfo *window );
extern void renderspu_SystemGetWindowGeometry( WindowInfo *window, GLint *x, GLint *y, GLint *w, GLint *h );
#ifdef RT_OS_DARWIN
extern void renderspu_SystemMakeCurrent( WindowInfo *window, GLint windowInfor, ContextInfo *context );
extern void renderspu_GCWindow(void);
extern GLint RENDER_APIENTRY renderspuCreateContext( const char *dpyname, GLint visBits, GLint shareCtx );
#ifdef __cplusplus
#ifdef __cplusplus