Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

scene Class Reference

List of all members.

Public Methods

 ~scene ()
 scene (int cap=2)
void add (item *obj)
void draw ()
int load (const char *filename)

Detailed Description

scene with multiple models


Constructor & Destructor Documentation

~scene  
 

scene int    cap = 2
 

create new scene with initial cpacity

Parameters:
cap initial capacity (number of ordinary items and transparent items) in each list


Member Function Documentation

void add item   obj
 

add item to scene

void draw  
 

draw entire scene (draw items in the order in which they were added)

int load const char *    filename
 

load the scene from definition file

Returns:
true if scene successfully loaded
Parameters:
filename name of the file to load