From: Brian Paul Date: Thu, 2 May 2013 01:15:33 +0000 (-0600) Subject: mesa: update GLvertexformat comments X-Git-Tag: mesa-9.2.1~1383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dc0081ade6c423662a3b89be0f433b9b4ec1773;p=platform%2Fupstream%2Fmesa.git mesa: update GLvertexformat comments Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 4c76fa4..bc93026 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -850,28 +850,17 @@ struct dd_function_table { /** - * Transform/Clip/Lighting interface + * Per-vertex functions. * - * Drivers present a reduced set of the functions possible in - * glBegin()/glEnd() objects. Core mesa provides translation stubs for the - * remaining functions to map down to these entry points. + * These are the functions which can appear between glBegin and glEnd. + * Depending on whether we're inside or outside a glBegin/End pair + * and whether we're in immediate mode or building a display list, these + * functions behave differently. This structure allows us to switch + * between those modes more easily. * - * These are the initial values to be installed into dispatch by - * mesa. If the T&L driver wants to modify the dispatch table - * while installed, it must do so itself. It would be possible for - * the vertexformat to install its own initial values for these - * functions, but this way there is an obvious list of what is - * expected of the driver. - * - * If the driver wants to hook in entry points other than those - * listed, it must restore them to their original values in - * the disable() callback, below. + * Generally, these pointers point to functions in the VBO module. */ typedef struct { - /** - * \name Vertex - */ - /*@{*/ void (GLAPIENTRYP ArrayElement)( GLint ); void (GLAPIENTRYP Color3f)( GLfloat, GLfloat, GLfloat ); void (GLAPIENTRYP Color3fv)( const GLfloat * ); @@ -1019,8 +1008,6 @@ typedef struct { void (GLAPIENTRYP VertexAttribP4uiv)( GLuint index, GLenum type, GLboolean normalized, const GLuint *value); - /*@}*/ - } GLvertexformat;