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

get.h File Reference


Detailed Description

State query functions.

#include "mtypes.h"

Functions

void GLAPIENTRY _mesa_GetBooleanv (GLenum pname, GLboolean *params)
void GLAPIENTRY _mesa_GetDoublev (GLenum pname, GLdouble *params)
void GLAPIENTRY _mesa_GetFloatv (GLenum pname, GLfloat *params)
void GLAPIENTRY _mesa_GetIntegerv (GLenum pname, GLint *params)
void GLAPIENTRY _mesa_GetInteger64v (GLenum pname, GLint64 *params)
void GLAPIENTRY _mesa_GetPointerv (GLenum pname, GLvoid **params)
 Return pointer-valued state, such as a vertex array pointer.
const GLubyte *GLAPIENTRY _mesa_GetString (GLenum name)
 Query string-valued state.
GLenum GLAPIENTRY _mesa_GetError (void)
 Returns the current GL error code, or GL_NO_ERROR.


Function Documentation

void GLAPIENTRY _mesa_GetBooleanv ( GLenum  pname,
GLboolean *  params 
)

void GLAPIENTRY _mesa_GetDoublev ( GLenum  pname,
GLdouble *  params 
)

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_GetFloatv ( GLenum  pname,
GLfloat *  params 
)

void GLAPIENTRY _mesa_GetInteger64v ( GLenum  pname,
GLint64 *  params 
)

void GLAPIENTRY _mesa_GetIntegerv ( GLenum  pname,
GLint *  params 
)

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.


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