X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fapi_validate.h;h=16b9c2b26473965d4f74e349a3d8db1f1ba1283d;hb=039150169e99be28d8b172a95a07032a3c862585;hp=7f381a042923f29902253feab4f576ab514e1459;hpb=cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290;p=mesa.git diff --git a/src/mesa/main/api_validate.h b/src/mesa/main/api_validate.h index 7f381a04292..16b9c2b2647 100644 --- a/src/mesa/main/api_validate.h +++ b/src/mesa/main/api_validate.h @@ -1,10 +1,9 @@ -/* $Id: api_validate.h,v 1.1 2000/12/26 05:09:27 keithw Exp $ */ /* * Mesa 3-D graphics library * Version: 3.5 * - * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -29,22 +28,41 @@ #define API_VALIDATE_H -#include "mtypes.h" +#include "glheader.h" + +struct gl_buffer_object; +struct gl_context; + + +extern GLuint +_mesa_max_buffer_index(struct gl_context *ctx, GLuint count, GLenum type, + const void *indices, + struct gl_buffer_object *elementBuf); extern GLboolean -_mesa_validate_DrawArrays(GLcontext *ctx, +_mesa_validate_DrawArrays(struct gl_context *ctx, GLenum mode, GLint start, GLsizei count); extern GLboolean -_mesa_validate_DrawElements(GLcontext *ctx, - GLenum mode, GLsizei count, GLenum type, - const GLvoid *indices); +_mesa_validate_DrawElements(struct gl_context *ctx, + GLenum mode, GLsizei count, GLenum type, + const GLvoid *indices, GLint basevertex); + +extern GLboolean +_mesa_validate_DrawRangeElements(struct gl_context *ctx, GLenum mode, + GLuint start, GLuint end, + GLsizei count, GLenum type, + const GLvoid *indices, GLint basevertex); + + +extern GLboolean +_mesa_validate_DrawArraysInstanced(struct gl_context *ctx, GLenum mode, GLint first, + GLsizei count, GLsizei primcount); extern GLboolean -_mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode, - GLuint start, GLuint end, - GLsizei count, GLenum type, - const GLvoid *indices); +_mesa_validate_DrawElementsInstanced(struct gl_context *ctx, + GLenum mode, GLsizei count, GLenum type, + const GLvoid *indices, GLsizei primcount); #endif