core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

getstring.c File Reference

#include "glheader.h"
#include "context.h"
#include "get.h"
#include "version.h"
#include "enums.h"
#include "extensions.h"

Functions

static const char * compute_version (const GLcontext *ctx)
 Examine enabled GL extensions to determine GL version.
const GLubyte *GLAPIENTRY _mesa_GetString (GLenum name)
 Query string-valued state.
void GLAPIENTRY _mesa_GetPointerv (GLenum pname, GLvoid **params)
 Return pointer-valued state, such as a vertex array pointer.
GLenum GLAPIENTRY _mesa_GetError (void)
 Returns the current GL error code, or GL_NO_ERROR.


Function Documentation

GLenum GLAPIENTRY _mesa_GetError ( void   ) 

Returns the current GL error code, or GL_NO_ERROR.

Returns:
current error code
Returns __GLcontextRec::ErrorValue.

void GLAPIENTRY _mesa_GetPointerv ( GLenum  pname,
GLvoid **  params 
)

Return pointer-valued state, such as a vertex array pointer.

Parameters:
pname names state to be queried
params returns the pointer value
See also:
glGetPointerv().
Tries to get the specified pointer via dd_function_table::GetPointerv, otherwise gets the specified pointer from the current context.

const GLubyte* GLAPIENTRY _mesa_GetString ( GLenum  name  ) 

Query string-valued state.

The return value should _not_ be freed by the caller.

Parameters:
name the state variable to query.
See also:
glGetString().
Tries to get the string from dd_function_table::GetString, otherwise returns the hardcoded strings.

static const char* compute_version ( const GLcontext ctx  )  [static]

Examine enabled GL extensions to determine GL version.

Returns:
version string


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4