From 780b01f1c855f9eb512077bb32d5d2dd2b48e4a7 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 31 Dec 2012 16:08:12 +0000 Subject: [PATCH] doc: Populate cogl-types a bit more and move it to the general section I just added the general types creating warnings in the current state of the documentation (ie the ones references by already documented functions) and moved the section from the 'Utility' section to the 'General' section which I believe is a better fit as they are used by more than one type and not really utilities. (cherry picked from commit c51b147789763863ef32482d7ffa936160ed7c93) --- cogl/cogl-primitive.h | 24 ++++-------- cogl/cogl-types.h | 7 ++++ .../cogl-2.0-experimental-docs.xml.in | 2 +- .../cogl-2.0-experimental-sections.txt | 37 +++++++++++++------ 4 files changed, 42 insertions(+), 28 deletions(-) diff --git a/cogl/cogl-primitive.h b/cogl/cogl-primitive.h index 8df15d779..b00439726 100644 --- a/cogl/cogl-primitive.h +++ b/cogl/cogl-primitive.h @@ -60,8 +60,7 @@ COGL_BEGIN_DECLS * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y; } CoglVertexP2; @@ -77,8 +76,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y, z; } CoglVertexP3; @@ -97,8 +95,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y; uint8_t r, g, b, a; } CoglVertexP2C4; @@ -119,8 +116,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y, z; uint8_t r, g, b, a; } CoglVertexP3C4; @@ -138,8 +134,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y; float s, t; } CoglVertexP2T2; @@ -158,8 +153,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y, z; float s, t; } CoglVertexP3T2; @@ -182,8 +176,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y; float s, t; uint8_t r, g, b, a; @@ -207,8 +200,7 @@ typedef struct * Since: 1.6 * Stability: Unstable */ -typedef struct -{ +typedef struct { float x, y, z; float s, t; uint8_t r, g, b, a; diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h index 248fa2f25..768a0eb10 100644 --- a/cogl/cogl-types.h +++ b/cogl/cogl-types.h @@ -48,6 +48,13 @@ COGL_BEGIN_DECLS +/** + * SECTION:cogl-types + * @short_description: Types used throughout the library + * + * General types used by various Cogl functions. +*/ + /** * CoglBool: * diff --git a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml.in b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml.in index b2eff6a42..1ddf4f938 100644 --- a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml.in +++ b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml.in @@ -65,6 +65,7 @@ General API concepts +
@@ -140,7 +141,6 @@ -
diff --git a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt index eebc8f3e1..d8abc6d42 100644 --- a/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt +++ b/doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-sections.txt @@ -20,6 +20,32 @@ cogl_error_copy COGL_GLIB_ERROR +
+cogl-types +Common Types + +CoglVertexP2 +CoglVertexP3 +CoglVertexP2C4 +CoglVertexP3C4 +CoglVertexP2T2 +CoglVertexP3T2 +CoglVertexP2T2C4 +CoglVertexP3T2C4 +CoglVerticesMode + + +CoglFuncPtr +CoglPixelFormat +CoglBufferTarget +CoglBufferBit +CoglAttributeType +CoglColorMask + + +CoglBool +
+
cogl-renderer CoglRenderer: Connect to a backend renderer @@ -871,17 +897,6 @@ COGL_VERSION_GET_MINOR COGL_VERSION_GET_MICRO
-
-cogl-types -Common Types -CoglFuncPtr -CoglPixelFormat -CoglBufferTarget -CoglBufferBit -CoglAttributeType -CoglColorMask -
-
cogl-gtype GType Integration API