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

get.c File Reference

#include "glheader.h"
#include "context.h"
#include "enable.h"
#include "extensions.h"
#include "fbobject.h"
#include "get.h"
#include "macros.h"
#include "mtypes.h"
#include "state.h"
#include "texcompress.h"

Defines

#define FLOAT_TO_BOOLEAN(X)   ( (X) ? GL_TRUE : GL_FALSE )
#define INT_TO_BOOLEAN(I)   ( (I) ? GL_TRUE : GL_FALSE )
#define INT64_TO_BOOLEAN(I)   ( (I) ? GL_TRUE : GL_FALSE )
#define INT64_TO_INT(I)   ( (GLint)((I > INT_MAX) ? INT_MAX : ((I < INT_MIN) ? INT_MIN : (I))) )
#define BOOLEAN_TO_INT(B)   ( (GLint) (B) )
#define BOOLEAN_TO_INT64(B)   ( (GLint64) (B) )
#define BOOLEAN_TO_FLOAT(B)   ( (B) ? 1.0F : 0.0F )
#define ENUM_TO_INT64(E)   ( (GLint64) (E) )
#define CHECK_EXT1(EXT1, FUNC)
#define CHECK_EXT2(EXT1, EXT2, FUNC)
#define CHECK_EXT3(EXT1, EXT2, EXT3, FUNC)
#define CHECK_EXT4(EXT1, EXT2, EXT3, EXT4, FUNC)

Functions

void GLAPIENTRY _mesa_GetBooleanv (GLenum pname, GLboolean *params)
void GLAPIENTRY _mesa_GetFloatv (GLenum pname, GLfloat *params)
void GLAPIENTRY _mesa_GetIntegerv (GLenum pname, GLint *params)
void GLAPIENTRY _mesa_GetDoublev (GLenum pname, GLdouble *params)


Define Documentation

#define BOOLEAN_TO_FLOAT (  )     ( (B) ? 1.0F : 0.0F )

#define BOOLEAN_TO_INT (  )     ( (GLint) (B) )

#define BOOLEAN_TO_INT64 (  )     ( (GLint64) (B) )

#define CHECK_EXT1 ( EXT1,
FUNC   ) 

Value:

if (!ctx->Extensions.EXT1) {                                        \
      _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname);  \
      return;                                                          \
   }

#define CHECK_EXT2 ( EXT1,
EXT2,
FUNC   ) 

Value:

if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2) {               \
      _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname);  \
      return;                                                          \
   }

#define CHECK_EXT3 ( EXT1,
EXT2,
EXT3,
FUNC   ) 

Value:

if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2 &&               \
       !ctx->Extensions.EXT3) {                                        \
      _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname);  \
      return;                                                          \
   }

#define CHECK_EXT4 ( EXT1,
EXT2,
EXT3,
EXT4,
FUNC   ) 

Value:

if (!ctx->Extensions.EXT1 && !ctx->Extensions.EXT2 &&               \
       !ctx->Extensions.EXT3 && !ctx->Extensions.EXT4) {               \
      _mesa_error(ctx, GL_INVALID_ENUM, FUNC "(0x%x)", (int) pname);  \
      return;                                                          \
   }

#define ENUM_TO_INT64 (  )     ( (GLint64) (E) )

#define FLOAT_TO_BOOLEAN (  )     ( (X) ? GL_TRUE : GL_FALSE )

#define INT64_TO_BOOLEAN (  )     ( (I) ? GL_TRUE : GL_FALSE )

#define INT64_TO_INT (  )     ( (GLint)((I > INT_MAX) ? INT_MAX : ((I < INT_MIN) ? INT_MIN : (I))) )

#define INT_TO_BOOLEAN (  )     ( (I) ? GL_TRUE : GL_FALSE )


Function Documentation

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 
)


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