Public Member Functions | Public Attributes

Ovgl::Scene Class Reference

This class contains a set of objects that make up a 3D scene. More...

#include <OvglScene.h>

List of all members.

Public Member Functions

LightCreateLight (Matrix44 *matirx, Vector4 *color)
CameraCreateCamera (Matrix44 *view_matrix)
ActorCreateActor (Mesh *mesh, float radius, float height, Matrix44 *matirx)
PropCreateProp (Mesh *mesh, Matrix44 *matrix)
ObjectCreateObject (Mesh *mesh, Matrix44 *matrix)
EmitterCreateEmitter (Matrix44 *matrix)
void Update (DWORD update_time)
void Save (const std::string &file, DWORD flags)
void Load (const std::string &file, DWORD flags)
void Import_FBX (const std::string &file, DWORD flags)
void Release ()

Public Attributes

InstanceInst
NxScene * physics_scene
std::vector< Object * > objects
std::vector< Light * > lights
std::vector< Camera * > cameras
std::vector< Prop * > props
std::vector< Actor * > actors
std::vector< Emitter * > emitters

Detailed Description

This class contains a set of objects that make up a 3D scene.

Scenes contain all the 3D objects that you will see on the screen such as lights, cameras, props, and actors. They also maintain the physics scene and objects.


Member Function Documentation

Actor* Ovgl::Scene::CreateActor ( Mesh mesh,
float  radius,
float  height,
Matrix44 matirx 
)

This function adds a Ovgl::Actor to the scene.

Parameters:
meshThe mesh object that will be displayed for the actor.
radiusThe radius of the actor's capsule within the physics scene which is the distance at which a character comes in contact with objects in the character's vertical plane.
heightThe hieght of the actor's capsule within the physics scene which is the distance at which a character comes in contact with objects in the character's horizontal plane.
matrixThe matrix which defines the the starting pose of the actor.
Camera* Ovgl::Scene::CreateCamera ( Matrix44 view_matrix )

This function adds a Ovgl::Camera to the scene.

Parameters:
matrixThe matrix which defines the the starting pose of the camera.
Emitter* Ovgl::Scene::CreateEmitter ( Matrix44 matrix )

This function adds a Ovgl::Emitter to the scene.

Parameters:
matrixThe matrix which defines the starting pose of the emitter.
Light* Ovgl::Scene::CreateLight ( Matrix44 matirx,
Vector4 color 
)

This function adds a Ovgl::Light to the scene.

Parameters:
matrixThe matrix which defines the the starting pose of the light.
colorThe color of the light.
typeThis option can be used to specify what type of light to emit. There are three types Point Light, Spot Light, and a Directional Light.
Object* Ovgl::Scene::CreateObject ( Mesh mesh,
Matrix44 matrix 
)

This function adds a Ovgl::Prop to the scene.

Parameters:
meshThe mesh that will be displayed for the object.
matrixThe matrix which defines the pose of the object.
Prop* Ovgl::Scene::CreateProp ( Mesh mesh,
Matrix44 matrix 
)

This function adds a Ovgl::Prop to the scene.

Parameters:
meshThe mesh that will be displayed for the prop.
matrixThe matrix which defines the the starting pose of the prop.
void Ovgl::Scene::Import_FBX ( const std::string &  file,
DWORD  flags 
)

This function loads a scene from the FBX format.

Parameters:
fileThe file to load.
void Ovgl::Scene::Load ( const std::string &  file,
DWORD  flags 
)

This function loads a scene from the engine's native format.

Parameters:
fileThe file to load.
void Ovgl::Scene::Release (  )

This function will release control of all memory associated with the scene and any objects within it. It will also remove any reference to it from the Ovgl::Instance.

void Ovgl::Scene::Save ( const std::string &  file,
DWORD  flags 
)

This function saves all objects in the scene out to the engine's native format.

Parameters:
fileThe file to save.
void Ovgl::Scene::Update ( DWORD  update_time )

This function updates the animations, audio emition points, and the physics objects of the scene.

Parameters:
update_timeThe amount of time that has passed since the last scene update.

Member Data Documentation

std::vector<Actor*> Ovgl::Scene::actors

This array contains all actors within the scene..

This array contains all cameras within the scene..

This array contains all emitters within the scene..

This is a pointer to the Ovgl instance that created the scene.

std::vector<Light*> Ovgl::Scene::lights

This array contains all lights within the scene..

This array contains all static objects on the set.

This is a pointer to the PhysX scene.

std::vector<Prop*> Ovgl::Scene::props

This array contains all props within the scene..


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables