Plasma Engine  2.0
Loading...
Searching...
No Matches
plSelectedObjectsContext Class Reference

Stores a list of game objects that should get highlighted by the renderer. More...

#include <Extractor.h>

Inheritance diagram for plSelectedObjectsContext:

Public Member Functions

void RemoveDeadObjects (const plWorld &world)
 
void AddObjectAndChildren (const plWorld &world, const plGameObjectHandle &hObject)
 
void AddObjectAndChildren (const plWorld &world, const plGameObject *pObject)
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Public Attributes

plDeque< plGameObjectHandlem_Objects
 

Additional Inherited Members

- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 

Detailed Description

Stores a list of game objects that should get highlighted by the renderer.

Store an instance somewhere in your game code: plSelectedObjectsContext m_SelectedObjects; Add handles to game object that should be get the highlighting outline (as the editor uses for selected objects). On an plView call: plView::SetExtractorProperty("HighlightObjects", "SelectionContext", &m_SelectedObjects); The first name must be the name of an plSelectedObjectsExtractor that is instantiated by the render pipeline.

As long as there is also an plSelectionHighlightPass in the render pipeline, all objects in this selection will be rendered with an outline.


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