XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSelectedObjectsContext Class Reference

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

#include <Extractor.h>

Inheritance diagram for xiiSelectedObjectsContext:
[legend]

Public Member Functions

void RemoveDeadObjects (const xiiWorld &world)
 
void AddObjectAndChildren (const xiiWorld &world, const xiiGameObjectHandle &hObject)
 
void AddObjectAndChildren (const xiiWorld &world, const xiiGameObject *pObject)
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Public Attributes

xiiDeque< xiiGameObjectHandlem_Objects
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Detailed Description

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

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

As long as there is also a xiiSelectionHighlightPass 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: