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

debug.c File Reference

#include "mtypes.h"
#include "attrib.h"
#include "colormac.h"
#include "context.h"
#include "hash.h"
#include "imports.h"
#include "debug.h"
#include "get.h"
#include "pixelstore.h"
#include "readpix.h"
#include "texgetimage.h"
#include "texobj.h"
#include "texformat.h"

Functions

void _mesa_print_state (const char *msg, GLuint state)
void _mesa_print_tri_caps (const char *name, GLuint flags)
void _mesa_print_info (void)
 Print information about this Mesa version and build options.
static void add_debug_flags (const char *debug)
 Set the debugging flags.
void _mesa_init_debug (GLcontext *ctx)
static void write_ppm (const char *filename, const GLubyte *buffer, int width, int height, int comps, int rcomp, int gcomp, int bcomp, GLboolean invert)
static void write_texture_image (struct gl_texture_object *texObj, GLuint face, GLuint level)
 Write level[0] image to a ppm file.
static void dump_texture_cb (GLuint id, void *data, void *userData)
void _mesa_dump_textures (GLboolean dumpImages)
 Print basic info about all texture objext to stdout.
void _mesa_dump_color_buffer (const char *filename)
void _mesa_dump_depth_buffer (const char *filename)
void _mesa_dump_stencil_buffer (const char *filename)

Variables

const char * _mesa_prim_name [GL_POLYGON+4]
 Primitive names.
static GLboolean DumpImages


Function Documentation

void _mesa_dump_color_buffer ( const char *  filename  ) 

void _mesa_dump_depth_buffer ( const char *  filename  ) 

void _mesa_dump_stencil_buffer ( const char *  filename  ) 

void _mesa_dump_textures ( GLboolean  dumpImages  ) 

Print basic info about all texture objext to stdout.

If dumpImages is true, write PPM of level[0] image to a file.

void _mesa_init_debug ( GLcontext ctx  ) 

void _mesa_print_info ( void   ) 

Print information about this Mesa version and build options.

void _mesa_print_state ( const char *  msg,
GLuint  state 
)

void _mesa_print_tri_caps ( const char *  name,
GLuint  flags 
)

static void add_debug_flags ( const char *  debug  )  [static]

Set the debugging flags.

Parameters:
debug debug string
If compiled with debugging support then search for keywords in debug and enables the verbose debug output of the respective feature.

static void dump_texture_cb ( GLuint  id,
void *  data,
void *  userData 
) [static]

static void write_ppm ( const char *  filename,
const GLubyte *  buffer,
int  width,
int  height,
int  comps,
int  rcomp,
int  gcomp,
int  bcomp,
GLboolean  invert 
) [static]

static void write_texture_image ( struct gl_texture_object texObj,
GLuint  face,
GLuint  level 
) [static]

Write level[0] image to a ppm file.


Variable Documentation

const char* _mesa_prim_name[GL_POLYGON+4]

Initial value:

 {
   "GL_POINTS",
   "GL_LINES",
   "GL_LINE_LOOP",
   "GL_LINE_STRIP",
   "GL_TRIANGLES",
   "GL_TRIANGLE_STRIP",
   "GL_TRIANGLE_FAN",
   "GL_QUADS",
   "GL_QUAD_STRIP",
   "GL_POLYGON",
   "outside begin/end",
   "inside unkown primitive",
   "unknown state"
}
Primitive names.

The string names for GL_POINT, GL_LINE_LOOP, etc.

GLboolean DumpImages [static]


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