diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-27 04:41:10 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-27 04:41:10 +0000 |
commit | 3cb8e49f07245bdb290b90d7eb5954eb287dd92c (patch) | |
tree | 73bcefec1a7eec65423355f8455fa9d64740930b | |
parent | c4ce1e79e2f528623db4760ad864f4d68062cace (diff) | |
download | dimension-3cb8e49f07245bdb290b90d7eb5954eb287dd92c.tar.xz |
Fix documentation.
-rw-r--r-- | doc/libdimension.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/libdimension.texi b/doc/libdimension.texi index b9dbf66..fedfb02 100644 --- a/doc/libdimension.texi +++ b/doc/libdimension.texi @@ -426,8 +426,8 @@ The @code{dmnsn_color_from_*()} and @code{dmnsn_*_from_color()} functions are us @code{dmnsn_color_add()} adds two colors in a perceptually-correct way, and @code{dmnsn_color_difference()} returns the magnatude of the perceptual difference between two colors. -@node Canvas -@chapter Canvas +@node Canvases +@chapter Canvases @tindex dmnsn_canvas* @@ -441,7 +441,7 @@ The @code{dmnsn_color_from_*()} and @code{dmnsn_*_from_color()} functions are us @cindex rendering target @example -typedef struct { +typedef struct @{ /* width, height */ unsigned int x, y; @@ -450,7 +450,7 @@ typedef struct { * The pixel at (a,b) is accessible as pixels[b*x + a]. */ dmnsn_color *pixels; -} dmnsn_canvas; +@} dmnsn_canvas; /* Allocate and free a canvas */ dmnsn_canvas *dmnsn_new_canvas(unsigned int x, unsigned int y); @@ -470,6 +470,10 @@ The target of a rendering operation in The Dimension Library is a canvas object, Canvases may be imported from or exported to images. In the future, canvases will also be able to be treated as object textures, to support images as textures. +@menu +* PNG Import and Export:: Importing and exporting canvases to and from PNG files +@end menu + @node PNG Import and Export @section PNG Import and Export |