#include <SceneGraph.h>
Public Member Functions | |
| SceneGraph (void) | |
| ~SceneGraph (void) | |
| const Node * | GetRootNode () const |
| Node * | GetRootNode () |
| const ml7::Matrix4x4 & | GetProjection () const |
| const ml7::Matrix4x4 & | GetView () const |
| const ml7::Matrix4x4 & | GetTransform () const |
| textures::BaseTexture * | GetTexture (unsigned stage) const |
| const materials::Material & | GetMaterial () const |
| const lights::Light & | GetLight () 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 () |
| xl7::direct3d::scene::SceneGraph::SceneGraph | ( | void | ) |
Default constructor.
| xl7::direct3d::scene::SceneGraph::~SceneGraph | ( | void | ) |
Destructor.
| 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.
1.7.1