From a46cc22c1bf30dbacdc2a86ac84161f2c048a7f5 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sun, 4 Jul 2010 00:18:10 +0100 Subject: [PATCH] cogl-buffer-private.h: cleanup up the coding style This file was following the Clutter coding style of arranging prototypes into columns which Cogl doesn't copy. --- cogl/cogl-buffer-private.h | 42 +++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/cogl/cogl-buffer-private.h b/cogl/cogl-buffer-private.h index 4682e2f9b..49cf0de22 100644 --- a/cogl/cogl-buffer-private.h +++ b/cogl/cogl-buffer-private.h @@ -22,6 +22,7 @@ * * Authors: * Damien Lespiau + * Robert Bragg */ #ifndef __COGL_BUFFER_PRIVATE_H__ @@ -50,15 +51,15 @@ typedef struct _CoglBufferVtable CoglBufferVtable; struct _CoglBufferVtable { - guint8 * (* map) (CoglBuffer *buffer, - CoglBufferAccess access); + guint8 * (* map) (CoglBuffer *buffer, + CoglBufferAccess access); - void (* unmap) (CoglBuffer *buffer); + void (* unmap) (CoglBuffer *buffer); - gboolean (* set_data) (CoglBuffer *buffer, - unsigned int offset, - const guint8 *data, - unsigned int size); + gboolean (* set_data) (CoglBuffer *buffer, + unsigned int offset, + const guint8 *data, + unsigned int size); }; typedef enum _CoglBufferFlags @@ -102,21 +103,28 @@ _cogl_buffer_register_buffer_type (GQuark type); _cogl_buffer_register_buffer_type (_cogl_object_ \ ## type_name ## _get_type ())) +void +_cogl_buffer_initialize (CoglBuffer *buffer, + unsigned int size, + CoglBufferUsageHint usage_hint, + CoglBufferUpdateHint update_hint); -void _cogl_buffer_initialize (CoglBuffer *buffer, - unsigned int size, - CoglBufferUsageHint usage_hint, - CoglBufferUpdateHint update_hint); -void _cogl_buffer_fini (CoglBuffer *buffer); +void +_cogl_buffer_fini (CoglBuffer *buffer); + +void +_cogl_buffer_bind (CoglBuffer *buffer, + GLenum target); CoglBufferUsageHint _cogl_buffer_get_usage_hint (CoglBuffer *buffer); -void _cogl_buffer_bind (CoglBuffer *buffer, - GLenum target); -GLenum _cogl_buffer_access_to_gl_enum (CoglBufferAccess access); -GLenum _cogl_buffer_hints_to_gl_enum (CoglBufferUsageHint usage_hint, - CoglBufferUpdateHint update_hint); +GLenum +_cogl_buffer_access_to_gl_enum (CoglBufferAccess access); + +GLenum +_cogl_buffer_hints_to_gl_enum (CoglBufferUsageHint usage_hint, + CoglBufferUpdateHint update_hint); G_END_DECLS