style cleanup, also remove unused externs.

This commit is contained in:
2012-03-11 19:09:01 +00:00
parent 65895a2a38
commit c21c58f44c
35 changed files with 129 additions and 131 deletions

View File

@@ -123,16 +123,16 @@ void GPU_global_buffer_pool_free(void);
GPUBuffer *GPU_buffer_alloc(int size);
void GPU_buffer_free(GPUBuffer *buffer);
GPUDrawObject *GPU_drawobject_new( struct DerivedMesh *dm );
void GPU_drawobject_free( struct DerivedMesh *dm );
GPUDrawObject *GPU_drawobject_new(struct DerivedMesh *dm );
void GPU_drawobject_free(struct DerivedMesh *dm );
/* called before drawing */
void GPU_vertex_setup( struct DerivedMesh *dm );
void GPU_normal_setup( struct DerivedMesh *dm );
void GPU_uv_setup( struct DerivedMesh *dm );
void GPU_color_setup( struct DerivedMesh *dm );
void GPU_edge_setup( struct DerivedMesh *dm ); /* does not mix with other data */
void GPU_uvedge_setup( struct DerivedMesh *dm );
void GPU_vertex_setup(struct DerivedMesh *dm );
void GPU_normal_setup(struct DerivedMesh *dm );
void GPU_uv_setup(struct DerivedMesh *dm );
void GPU_color_setup(struct DerivedMesh *dm );
void GPU_edge_setup(struct DerivedMesh *dm ); /* does not mix with other data */
void GPU_uvedge_setup(struct DerivedMesh *dm );
int GPU_attrib_element_size( GPUAttrib data[], int numdata );
void GPU_interleaved_attrib_setup( GPUBuffer *buffer, GPUAttrib data[], int numdata );
@@ -142,7 +142,7 @@ void *GPU_buffer_lock_stream( GPUBuffer *buffer );
void GPU_buffer_unlock( GPUBuffer *buffer );
/* upload three unsigned chars, representing RGB colors, for each vertex. Resets dm->drawObject->colType to -1 */
void GPU_color3_upload( struct DerivedMesh *dm, unsigned char *data );
void GPU_color3_upload(struct DerivedMesh *dm, unsigned char *data );
/* switch color rendering on=1/off=0 */
void GPU_color_switch( int mode );
@@ -153,7 +153,7 @@ void GPU_buffer_draw_elements( GPUBuffer *elements, unsigned int mode, int start
void GPU_buffer_unbind(void);
/* used to check whether to use the old (without buffers) code */
int GPU_buffer_legacy( struct DerivedMesh *dm );
int GPU_buffer_legacy(struct DerivedMesh *dm );
/* Buffers for non-DerivedMesh drawing */
typedef struct GPU_Buffers GPU_Buffers;