mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Selection Highlighting
This commit is contained in:
parent
64d1b06866
commit
d4c2eeea98
7 changed files with 52 additions and 0 deletions
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -253,6 +253,7 @@ void MatInstance::construct()
|
|||
mIsForwardLit = false;
|
||||
mIsValid = false;
|
||||
mIsHardwareSkinned = false;
|
||||
needsHighlighting = false;
|
||||
|
||||
MATMGR->_track(this);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue