packspu_getstring.c revision 0a08bb004c627770553912c3b340c66c63ae1ac3
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packspu.h"
#include "cr_packfunctions.h"
#include "state/cr_statefuncs.h"
#include "cr_string.h"
#include "packspu_proto.h"
#ifdef CR_OPENGL_VERSION_2_0
#endif
static const GLubyte *
GetExtensions(void)
{
int writeback = 1;
{
}
else
{
}
packspuFlush( (void *) thread );
while (writeback)
crNetRecv();
/* OK, we got the result from the server. Now we have to
* intersect is with the set of extensions that Chromium understands
* and tack on the Chromium-specific extensions.
*/
#ifdef CR_OPENGL_VERSION_2_0
/* This extension is a core part of opengl 2.0, yet
* some apps (like glview) request us to have this extension.
* @todo, check if host supports opengl 2.0 or this extension
* before exporting it.
*/
#else
#endif
return gpszExtensions;
}
{
int writeback = 1;
else
packspuFlush( (void *) thread );
while (writeback)
crNetRecv();
}
static GLfloat
GetVersionString(void)
{
int writeback = 1;
return version;
}
#ifdef WINDOWS
static bool packspuRunningUnderWine(void)
{
}
#endif
{
switch(name)
{
case GL_EXTENSIONS:
return GetExtensions();
case GL_VERSION:
#ifdef WINDOWS
if (packspuRunningUnderWine())
{
}
else
#endif
{
float version = GetVersionString();
}
case GL_VENDOR:
#ifdef WINDOWS
if (packspuRunningUnderWine())
{
}
else
#endif
{
return crStateGetString(name);
}
case GL_RENDERER:
#ifdef WINDOWS
if (packspuRunningUnderWine())
{
}
else
#endif
{
return crStateGetString(name);
}
#ifdef CR_OPENGL_VERSION_2_0
return gpszShadingVersion;
#endif
#ifdef GL_CR_real_vendor_strings
case GL_REAL_VENDOR:
case GL_REAL_VERSION:
case GL_REAL_RENDERER:
#endif
default:
return crStateGetString(name);
}
}