diff options
author | Kenneth Graunke <[email protected]> | 2014-02-01 19:36:59 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-02-03 00:53:05 -0800 |
commit | aac1415b66fafedc50c4346dae2d652723156ed9 (patch) | |
tree | 768d4f39f6715a7184536a0709ac1d4d26f289bf /src/mesa/main/arrayobj.h | |
parent | 94e07c196075a494642d5617f96e36996c58d116 (diff) |
mesa: Rename "struct gl_array_object" to gl_vertex_array_object.
I considered replacing it with "gl_vao", but spelling it out seemed to
fit better with Mesa's traditional style. Mesa doesn't shy away from
long type names - consider gl_transform_feedback_object,
gl_fragment_program_state, gl_uniform_buffer_binding, and so on.
Completely generated by:
$ find . -type f -print0 | xargs -0 sed -i \
's/gl_array_object/gl_vertex_array_object/g'
v2: Rerun command to resolve conflicts with Ian's meta patches.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.h')
-rw-r--r-- | src/mesa/main/arrayobj.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index cc3360cbb5c..722708eed25 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -45,24 +45,24 @@ struct gl_context; * Internal functions */ -extern struct gl_array_object * +extern struct gl_vertex_array_object * _mesa_lookup_arrayobj(struct gl_context *ctx, GLuint id); -extern struct gl_array_object * +extern struct gl_vertex_array_object * _mesa_new_array_object( struct gl_context *ctx, GLuint name ); extern void -_mesa_delete_array_object( struct gl_context *ctx, struct gl_array_object *obj ); +_mesa_delete_array_object( struct gl_context *ctx, struct gl_vertex_array_object *obj ); extern void _mesa_reference_array_object_(struct gl_context *ctx, - struct gl_array_object **ptr, - struct gl_array_object *vao); + struct gl_vertex_array_object **ptr, + struct gl_vertex_array_object *vao); static inline void _mesa_reference_array_object(struct gl_context *ctx, - struct gl_array_object **ptr, - struct gl_array_object *vao) + struct gl_vertex_array_object **ptr, + struct gl_vertex_array_object *vao) { if (*ptr != vao) _mesa_reference_array_object_(ctx, ptr, vao); @@ -71,16 +71,16 @@ _mesa_reference_array_object(struct gl_context *ctx, extern void _mesa_initialize_array_object( struct gl_context *ctx, - struct gl_array_object *obj, GLuint name ); + struct gl_vertex_array_object *obj, GLuint name ); extern void _mesa_update_array_object_max_element(struct gl_context *ctx, - struct gl_array_object *vao); + struct gl_vertex_array_object *vao); extern void _mesa_update_array_object_client_arrays(struct gl_context *ctx, - struct gl_array_object *vao); + struct gl_vertex_array_object *vao); /** Returns the bitmask of all enabled arrays in fixed function mode. @@ -89,7 +89,7 @@ _mesa_update_array_object_client_arrays(struct gl_context *ctx, * are available. */ static inline GLbitfield64 -_mesa_array_object_get_enabled_ff(const struct gl_array_object *vao) +_mesa_array_object_get_enabled_ff(const struct gl_vertex_array_object *vao) { return vao->_Enabled & VERT_BIT_FF_ALL; } @@ -101,7 +101,7 @@ _mesa_array_object_get_enabled_ff(const struct gl_array_object *vao) * precedence over the legacy position array. */ static inline GLbitfield64 -_mesa_array_object_get_enabled_arb(const struct gl_array_object *vao) +_mesa_array_object_get_enabled_arb(const struct gl_vertex_array_object *vao) { GLbitfield64 enabled = vao->_Enabled; return enabled & ~(VERT_BIT_POS & (enabled >> VERT_ATTRIB_GENERIC0)); |