summaryrefslogtreecommitdiff
path: root/cogl/cogl-snippet.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-snippet.h')
-rw-r--r--cogl/cogl-snippet.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cogl/cogl-snippet.h b/cogl/cogl-snippet.h
index 5eecbfc8..cdce3b26 100644
--- a/cogl/cogl-snippet.h
+++ b/cogl/cogl-snippet.h
@@ -271,6 +271,19 @@ COGL_BEGIN_DECLS
* coloring algorithms. This is equivalent to #gl_FrontFacing.
* </para></glossdef>
* </glossentry>
+ * <glossentry>
+ * <glossterm>vec2 <emphasis>cogl_point_coord</emphasis></glossterm>
+ * <glossdef><para>
+ * When rendering points, this will contain a vec2 which represents
+ * the position within the point of the current fragment.
+ * vec2(0.0,0.0) will be the topleft of the point and vec2(1.0,1.0)
+ * will be the bottom right. Note that there is currently a bug in
+ * Cogl where when rendering to an offscreen buffer these
+ * coordinates will be upside-down. The value is undefined when not
+ * rendering points. This builtin can only be used if the
+ * %COGL_FEATURE_ID_POINT_SPRITE feature is available.
+ * </para></glossdef>
+ * </glossentry>
* </glosslist>
*
* Here is an example of using a snippet to add a desaturate effect to the