[Cogl] [PATCH] framebuffer: Rename get_color_format() to get_format()
Damien Lespiau
damien.lespiau at gmail.com
Mon Oct 1 12:54:33 PDT 2012
From: Damien Lespiau <damien.lespiau at intel.com>
The type is actually called PixelFormat, it's a bit weird to have
get_color_format() to retrieve it. Let's align with CoglTexture and
CoglBitmap and call the function get_format().
The other choice could have been get_pixel_format(), but it's better to
align with what is currently defined elsewhere.
---
cogl/cogl-framebuffer.c | 2 +-
cogl/cogl-framebuffer.h | 4 ++--
cogl/cogl.symbols | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 6798d02..64e0a28 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -1153,7 +1153,7 @@ cogl_framebuffer_set_dither_enabled (CoglFramebuffer *framebuffer,
}
CoglPixelFormat
-cogl_framebuffer_get_color_format (CoglFramebuffer *framebuffer)
+cogl_framebuffer_get_format (CoglFramebuffer *framebuffer)
{
return framebuffer->format;
}
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index c1295b8..0e60590 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -786,7 +786,7 @@ cogl_framebuffer_set_color_mask (CoglFramebuffer *framebuffer,
CoglColorMask color_mask);
/**
- * cogl_framebuffer_get_color_format:
+ * cogl_framebuffer_get_format:
* @framebuffer: A #CoglFramebuffer framebuffer
*
* Queries the common #CoglPixelFormat of all color buffers attached
@@ -798,7 +798,7 @@ cogl_framebuffer_set_color_mask (CoglFramebuffer *framebuffer,
* Stability: unstable
*/
CoglPixelFormat
-cogl_framebuffer_get_color_format (CoglFramebuffer *framebuffer);
+cogl_framebuffer_get_format (CoglFramebuffer *framebuffer);
/**
* cogl_framebuffer_set_depth_texture_enabled:
diff --git a/cogl/cogl.symbols b/cogl/cogl.symbols
index ebb1bf8..9206721 100644
--- a/cogl/cogl.symbols
+++ b/cogl/cogl.symbols
@@ -194,7 +194,7 @@ cogl_framebuffer_finish
cogl_framebuffer_frustum
cogl_framebuffer_get_alpha_bits
cogl_framebuffer_get_blue_bits
-cogl_framebuffer_get_color_format
+cogl_framebuffer_get_format
cogl_framebuffer_get_color_mask
cogl_framebuffer_get_context
cogl_framebuffer_get_dither_enabled
--
1.7.7.5
More information about the Cogl
mailing list