libcoyotl - A Library of C++ Tools

Created by Scott Robert Ladd at Coyote Gulch Productions.


Classes | Static Public Member Functions | List of all members
libcoyotl::maze_renderer Class Reference

Renders a maze object. More...

#include <maze_renderer.h>

Static Public Member Functions

static void render (const libcoyotl::maze &a_source, const std::string &a_filename, size_t a_grid_size)
 Renders a maze to a PNG file with a specific cell size. More...
 

Detailed Description

A maze_renderer creates an image of a maze as a black-and-white PNG (Portable Network Graphics) file. This class requires libpng and zlib.

Member Function Documentation

static void libcoyotl::maze_renderer::render ( const libcoyotl::maze a_source,
const std::string &  a_filename,
size_t  a_grid_size 
)
static

Renders a maze object to a PNG file, using a specified cell size.

Parameters
a_source- The maze to be rendered
a_filename- The name of the file to be created
a_grid_size- The dimension (in pixels) of a rendered cell (always square)

The documentation for this class was generated from the following file:

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.