Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6009: Move renderHighlights to base class
- Loading branch information
1 parent
485dbb1
commit 9beffa7
Showing
6 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#pragma once | ||
|
||
#include <vector> | ||
#include "scene/Node.h" | ||
#include "RenderableModelSurface.h" | ||
|
||
namespace model | ||
{ | ||
|
||
/** | ||
* Common ModelNode implementation used by various model types, | ||
* e.g. StaticModelNode and MD5ModelNode | ||
*/ | ||
class ModelNodeBase : | ||
public scene::Node | ||
{ | ||
protected: | ||
// The renderable surfaces attached to the shaders | ||
std::vector<RenderableModelSurface::Ptr> _renderableSurfaces; | ||
|
||
protected: | ||
ModelNodeBase() | ||
{} | ||
|
||
public: | ||
void renderHighlights(IRenderableCollector& collector, const VolumeTest& volume) override; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters