Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Attributes | List of all members
om::engine::graphics::GraphicsSceneContext Class Reference

A class that manages the internal graphics state for a scene. More...

#include <omEngineGraphicsSceneContext.h>

Inheritance diagram for om::engine::graphics::GraphicsSceneContext:
om::engine::base::SceneContext

Public Member Functions

 GraphicsSceneContext ()
 Create a new empty graphics scene context. More...
 
GraphicsScenegetScene () const
 Return a pointer to the graphics scene that contains the graphics objects. More...
 
virtual void addResource (const OpaqueResource &resource)
 Add a new resource to the scene context. More...
 
virtual void removeResource (const OpaqueResource &resource)
 Remove a resource from the scene context. More...
 
virtual void clearResources ()
 Remove all resources from this scene context. More...
 
virtual const ResourceType & getResourceType () const
 Return the resource type of this scene context's concrete type. More...
 
- Public Member Functions inherited from om::engine::base::SceneContext
virtual ~SceneContext ()
 Destroy a scene context and release internal resources. More...
 
virtual void addResource (const OpaqueResource &resource)=0
 Add a new resource to the scene context. More...
 
virtual void removeResource (const OpaqueResource &resource)=0
 Remove a resource from the scene context. More...
 

Static Public Attributes

static const ResourceType RESOURCE_TYPE
 The resource type for a graphics scene context. More...
 

Detailed Description

A class that manages the internal graphics state for a scene.

Constructor & Destructor Documentation

om::engine::graphics::GraphicsSceneContext::GraphicsSceneContext ( )

Create a new empty graphics scene context.

Member Function Documentation

GraphicsScene* om::engine::graphics::GraphicsSceneContext::getScene ( ) const
inline

Return a pointer to the graphics scene that contains the graphics objects.

virtual void om::engine::graphics::GraphicsSceneContext::addResource ( const OpaqueResource &  resource)
virtual

Add a new resource to the scene context.

virtual void om::engine::graphics::GraphicsSceneContext::removeResource ( const OpaqueResource &  resource)
virtual

Remove a resource from the scene context.

virtual void om::engine::graphics::GraphicsSceneContext::clearResources ( )
virtual

Remove all resources from this scene context.

Implements om::engine::base::SceneContext.

virtual const ResourceType& om::engine::graphics::GraphicsSceneContext::getResourceType ( ) const
virtual

Return the resource type of this scene context's concrete type.

Implements om::engine::base::SceneContext.

Member Data Documentation

const ResourceType om::engine::graphics::GraphicsSceneContext::RESOURCE_TYPE
static

The resource type for a graphics scene context.


The documentation for this class was generated from the following file: