Eidolon
Public Member Functions | Public Attributes | List of all members
ResourceOp Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for ResourceOp:
Inheritance graph
Collaboration diagram for ResourceOp:
Collaboration graph

Public Member Functions

 ResourceOp (std::string parentname="")
 
virtual void op ()
 Before each render operation, this method is called for every ResourceOp object the renderer stores, the object is deleted. More...
 

Public Attributes

std::string parentname
 Name of parent object which created this op and whose internal state is associated with it. More...
 

Detailed Description

Base class used by specializations with the renderer to destroy and update resources within the render cycle. The name of the creating object should be passed in the constructor for operations which might be performed after an object has been deleted. Objects who may have operations pending when their destructors are called can remove them from the queue using the OgreRenderScene::removeResourceOp() method in their destructors with their own names as the argument; this will ensure any operation with that name as its `parentname' field will be removed before being called.

Constructor & Destructor Documentation

◆ ResourceOp()

ResourceOp ( std::string  parentname = "")
inline

Member Function Documentation

◆ op()

virtual void op ( )
inlinevirtual

Before each render operation, this method is called for every ResourceOp object the renderer stores, the object is deleted.

Reimplemented in DestroySceneNodeOp, RemoveResourceOp< M >, and CommitOp< T >.

Member Data Documentation

◆ parentname

std::string parentname

Name of parent object which created this op and whose internal state is associated with it.


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