![]() |
Plasma Engine
2.0
|
Stores a list of game objects that should get highlighted by the renderer. More...
#include <Extractor.h>
Public Member Functions | |
void | RemoveDeadObjects (const plWorld &world) |
void | AddObjectAndChildren (const plWorld &world, const plGameObjectHandle &hObject) |
void | AddObjectAndChildren (const plWorld &world, const plGameObject *pObject) |
![]() | |
virtual const plRTTI * | GetDynamicRTTI () 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< plGameObjectHandle > | m_Objects |
Additional Inherited Members | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
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.