XScene Class
This is the scene manager. It controls the rendering of objects, manages objects position, etc.
  • AddActor(string, string) - This adds an actor to the scene. The first parameter is its name and the second is the name of it's model.
  • Actor(string) - This returns an actor from the scene, so its properties can be changed. The argument that is passed is the name of the actor you are trying to access.
  • RemoveActor(string) - This removes an actor from the scene. The parameter is the name of the actor to remove.
  • AddModel(string, string) - This adds a model to the scene. The first parameter is its name and the second is its filename.
  • Model(string) - This returns a model from the scene, so its properties can be changed. The argument that is passed is the name of the model you are trying to access.
  • RemoveModel(string) - This removes a model from the scene. The parameter is the name of the model to remove.
  • Reset() - This will clear all models and actors from the scene. This is useful when changing levels, for example.

Note: For more information on actors and model, view tutorial #2 in the Tutorials section.

Last edited Mar 23, 2008 at 12:21 AM by Hazardous101, version 2

Comments

No comments yet.