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

api_validate.h File Reference

#include "mtypes.h"

Functions

GLuint _mesa_max_buffer_index (GLcontext *ctx, GLuint count, GLenum type, const void *indices, struct gl_buffer_object *elementBuf)
 Find the max index in the given element/index buffer.
GLboolean _mesa_validate_DrawArrays (GLcontext *ctx, GLenum mode, GLint start, GLsizei count)
 Called from the tnl module to error check the function parameters and verify that we really can draw something.
GLboolean _mesa_validate_DrawElements (GLcontext *ctx, GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
 Error checking for glDrawElements().
GLboolean _mesa_validate_DrawRangeElements (GLcontext *ctx, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
 Error checking for glDrawRangeElements().


Function Documentation

GLuint _mesa_max_buffer_index ( GLcontext ctx,
GLuint  count,
GLenum  type,
const void *  indices,
struct gl_buffer_object elementBuf 
)

Find the max index in the given element/index buffer.

GLboolean _mesa_validate_DrawArrays ( GLcontext ctx,
GLenum  mode,
GLint  start,
GLsizei  count 
)

Called from the tnl module to error check the function parameters and verify that we really can draw something.

Returns:
GL_TRUE if OK to render, GL_FALSE if error found

GLboolean _mesa_validate_DrawElements ( GLcontext ctx,
GLenum  mode,
GLsizei  count,
GLenum  type,
const GLvoid *  indices,
GLint  basevertex 
)

Error checking for glDrawElements().

Includes parameter checking and VBO bounds checking.

Returns:
GL_TRUE if OK to render, GL_FALSE if error found

GLboolean _mesa_validate_DrawRangeElements ( GLcontext ctx,
GLenum  mode,
GLuint  start,
GLuint  end,
GLsizei  count,
GLenum  type,
const GLvoid *  indices,
GLint  basevertex 
)

Error checking for glDrawRangeElements().

Includes parameter checking and VBO bounds checking.

Returns:
GL_TRUE if OK to render, GL_FALSE if error found


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