libcoyotl::maze_renderer Class Reference
Renders a
maze object.
More...
#include <maze_renderer.h>
List of all members.
Classes
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.
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: