Selection Highlighting

This commit is contained in:
Marc Chapman 2017-07-26 23:48:29 +01:00
parent 64d1b06866
commit d4c2eeea98
7 changed files with 52 additions and 0 deletions

View file

@ -252,6 +252,11 @@ public:
virtual const GFXStateBlockDesc &getUserStateBlock() const = 0;
protected:
bool needsHighlighting;
public:
bool needsSelectionHighlighting() { return needsHighlighting; };
void setSelectionHighlighting(bool flag) { needsHighlighting = flag; };
};
#endif /// _BASEMATINSTANCE_H_

View file

@ -253,6 +253,7 @@ void MatInstance::construct()
mIsForwardLit = false;
mIsValid = false;
mIsHardwareSkinned = false;
needsHighlighting = false;
MATMGR->_track(this);
}

View file

@ -52,6 +52,9 @@ struct SceneData
/// The deferred render bin.
/// @RenderDeferredMgr
DeferredBin,
/// The selection-highlight render bin.
/// @afxRenderHighlightMgr
HighlightBin,
};
/// This defines when we're rendering a special bin