Node.cs 748 B

123456789101112131415161718192021222324252627
  1. // $Id$
  2. namespace SceneGraph
  3. {
  4. /// <summary>
  5. /// This is the basic object of a scene graph: A single node with a Draw()
  6. /// command. The nodes form a graph (in our case it's a tree). Each node
  7. /// will trigger Draw() commands on it subnodes.
  8. /// </summary>
  9. /// <remarks>
  10. /// Some introduction to scenegraphs can be found in our wiki:
  11. /// http://supertux.lethargik.org/wiki/SceneGraph
  12. /// </remarks>
  13. public interface Node
  14. {
  15. /// <summary>
  16. /// When called should draw the node
  17. /// </summary>
  18. /// <param name="cliprect">
  19. /// The area that is visible in the <see cref="RenderView"/>
  20. /// we are drawing to. Check with this to see if you can skip
  21. /// drawing.
  22. /// </param>
  23. void Draw(Gdk.Rectangle cliprect);
  24. }
  25. }