[cogl/wip/cogl-sharp: 35/43] framebuffer: Rename get_color_format() to get_format()



commit da90a3b97ed0ede4ac493103b84b734fd3773fc0
Author: Damien Lespiau <damien lespiau intel com>
Date:   Mon Oct 1 20:48:48 2012 +0100

    framebuffer: Rename get_color_format() to get_format()
    
    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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]