Public Member Functions

xl7::direct3d::scene::SceneGraph Class Reference

#include <SceneGraph.h>

List of all members.

Public Member Functions

 SceneGraph (void)
 ~SceneGraph (void)
const NodeGetRootNode () const
NodeGetRootNode ()
const ml7::Matrix4x4GetProjection () const
const ml7::Matrix4x4GetView () const
const ml7::Matrix4x4GetTransform () const
textures::BaseTextureGetTexture (unsigned stage) const
const materials::MaterialGetMaterial () const
const lights::LightGetLight () const
void SetProjection (const ml7::Matrix4x4 &projection)
void SetView (const ml7::Matrix4x4 &view)
void SetTransform (const ml7::Matrix4x4 &transform)
void SetTexture (unsigned stage, textures::BaseTexture *texture)
void SetMaterial (const materials::Material &material)
void SetLight (const lights::Light &light)
unsigned GetMaxTextures () const
void Update ()
void Resort ()

Constructor & Destructor Documentation

xl7::direct3d::scene::SceneGraph::SceneGraph ( void   ) 

Default constructor.

xl7::direct3d::scene::SceneGraph::~SceneGraph ( void   ) 

Destructor.


Member Function Documentation

const lights::Light& xl7::direct3d::scene::SceneGraph::GetLight (  )  const [inline]

Returns the current light.

const materials::Material& xl7::direct3d::scene::SceneGraph::GetMaterial (  )  const [inline]

Returns the current material.

unsigned xl7::direct3d::scene::SceneGraph::GetMaxTextures (  )  const [inline]

Returns the maximum number of texture stages.

const ml7::Matrix4x4& xl7::direct3d::scene::SceneGraph::GetProjection (  )  const [inline]

Returns the current projection matrix.

Node* xl7::direct3d::scene::SceneGraph::GetRootNode (  )  [inline]

Returns the root node.

const Node* xl7::direct3d::scene::SceneGraph::GetRootNode (  )  const [inline]

Returns the root node.

textures::BaseTexture * xl7::direct3d::scene::SceneGraph::GetTexture ( unsigned  stage  )  const

Returns the current texture of the given stage.

const ml7::Matrix4x4& xl7::direct3d::scene::SceneGraph::GetTransform (  )  const [inline]

Returns the current world transform matrix.

const ml7::Matrix4x4& xl7::direct3d::scene::SceneGraph::GetView (  )  const [inline]

Returns the current view matrix.

void xl7::direct3d::scene::SceneGraph::Resort (  ) 

Resorts the internal draw-call objects that represent a geometry node each.

void xl7::direct3d::scene::SceneGraph::SetLight ( const lights::Light light  ) 

Sets the current light.

void xl7::direct3d::scene::SceneGraph::SetMaterial ( const materials::Material material  ) 

Sets the current material.

void xl7::direct3d::scene::SceneGraph::SetProjection ( const ml7::Matrix4x4 projection  ) 

Sets the current projection matrix.

void xl7::direct3d::scene::SceneGraph::SetTexture ( unsigned  stage,
textures::BaseTexture texture 
)

Sets the current texture of the given stage.

void xl7::direct3d::scene::SceneGraph::SetTransform ( const ml7::Matrix4x4 transform  ) 

Sets the current world transform matrix.

void xl7::direct3d::scene::SceneGraph::SetView ( const ml7::Matrix4x4 view  ) 

Sets the current view matrix.

void xl7::direct3d::scene::SceneGraph::Update (  ) 

Runs through the scene nodes and performs specific actions like updating derived state attributes.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines