Aether3D
Game Engine
|
Stores scene in a scene graph. More...
#include <Scene.hpp>
Public Member Functions | |
virtual | ~Scene () |
virtual void | Add (Camera *camera)=0 |
virtual void | Add (Light *light)=0 |
virtual void | Add (Model *model)=0 |
virtual void | Remove (SceneGraphNode *node)=0 |
virtual Camera * | GetNonRTCamera ()=0 |
virtual Material * | GetMaterial (const char *name)=0 |
virtual Model * | GetModel (const char *name)=0 |
virtual std::list< std::pair< Model *, std::list< std::string > > > | GetColliders (int screenX, int screenY, CollisionTest collisionTest, float maxDepth) const =0 |
virtual std::list< std::pair< Model *, std::list< std::string > > > | GetColliders (const Vec3 &aabbMin, const Vec3 &aabbMax, CollisionTest collisionTest) const =0 |
virtual bool | LoadFromFile (const char *path)=0 |
virtual bool | SaveToFile (const char *path)=0 |
virtual SceneGraphNode & | RootNode ()=0 |
virtual void | SetSkybox (const Texture *cubeMap)=0 |
virtual void | OnNodeAdded (SceneGraphNode *node)=0 |
Stores scene in a scene graph.
|
inlinevirtual |
Destructor.
|
pure virtual |
Gets colliders for an AABB. Note that collision with a model's AABB does not necessarily mean that any of the meshes were included in the collision.
aabbMin | AABB's min value in world-space. |
aabbMax | AABB's max value in world-space. |
collisionTest | Collision test to perform. |
|
pure virtual |
Gets colliders for a ray shot through a screen point. The first object's first mesh is the closest.
screenX | Screen x coordinate in pixels. |
screenY | Screen y coordinate in pixels. |
collisionTest | Collision test to perform. |
maxDepth | Maximum depth where collisions are tested. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Loads a scene from a text file. Does not empty current scene contents.
path | .scene file. |
|
pure virtual |
Called automatically when a node is added into scene to update Scene's internal representation.
node | Node. |
|
pure virtual |
node | Node to be removed from the scene graph. |
|
pure virtual |
|
pure virtual |
Saves the scene into an ascii file.
path | .scene file. |
|
pure virtual |
cubeMap | Cube map that's used for skybox cube mesh. |