From 3cb8e49f07245bdb290b90d7eb5954eb287dd92c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Jun 2009 04:41:10 +0000 Subject: Fix documentation. --- doc/libdimension.texi | 12 ++++++++---- 1 file 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 -- cgit v1.2.3