Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPolygon2DQueue Class Reference

A queue for polygon 2D objects to render at a later time. More...

#include <pol2d.h>

List of all members.

Public Methods

 csPolygon2DQueue (int max_size)
 Construct a queue for a given maximum size.

 ~csPolygon2DQueue ()
 Destruct queue.

void Push (csPolygon3D *poly3d, csPolygon2D *poly2d)
 Push a 2D polygon to the queue.

bool Pop (csPolygon3D **poly3d, csPolygon2D **poly2d)
 Pop last added 2D polygon from the queue. More...


Detailed Description

A queue for polygon 2D objects to render at a later time.

This queue is useful to remember a set of 2D polygons efficiently and play them back in front to back or back to front. A queue is always allocated for a given maximum size. This size is known in advance because we know for which polygons the queue is going to be used.
Note! The queue will never delete polygons from memory. You are responsible for cleaning up the queue first.


Member Function Documentation

bool csPolygon2DQueue::Pop ( csPolygon3D ** poly3d,
csPolygon2D ** poly2d )
 

Pop last added 2D polygon from the queue.

Return false if there are no more 2D polygons.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000