XCameras Class
This is the camera manager. It controls the updating of cameras and switching between them.
  • AddCamera(string) - This creates a new camera with the name specified in the first argument
  • RemoveCamera(string) - This removes a camera with the name specified
  • Reset() - This will remove all cameras from the scene, this is useful when switching between levels, for example.
  • Camera(string) - This retrieves the camera with the specified name, so its properties can be adjusted.
  • ActiveCamera - This is a reference to the camera that is currently in use. This can be used for quickly retrieving it's properties for things like custom shaders. When the scene is drawn, it is done from the perspective of this camera.
  • SetActiveCamera(string) - This sets the ActiveCamera variable to the specified camera.

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

Comments

No comments yet.