Scene::Graph - A Two-Dimensional Scene Graph


This is a pure-perl implementation of a It allows the creation of scenes of nodes with translations. The scene may then be traversed using Scene::Graph::Traverser. It allows iteration over a flat array of cloned nodes with all applicable transformations applied.


This module is in the early stages of development is is likely to change significantly. Release early, release often.


    use Scene::Graph::Node;
    use Scene::Graph::Traverser;

    my $box = Scene::Graph::Node->new;

    my $thing1 = Scene::Graph::Node->new;
    my $thing2 = Scene::Graph::Node->new;

    my $traverser = Scene::Graph::Traverser->new(scene => $thing);
    while(my $node = $traverser->next) {
        # 1st is box, then thing1 and finally thing2


Cory G Watson, <gphat at>



Copyright 2010 Cold Hard Code, LLC.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See for more information.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 17:

alternative text '' contains non-escaped | or /