-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5584: Infrastructure to render the generic entity boxes (with and wi…
…thout arrows)
- Loading branch information
1 parent
b62f0b2
commit 33a6c52
Showing
6 changed files
with
127 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "RenderableEntityBox.h" | ||
|
||
#include "EntityNode.h" | ||
|
||
namespace entity | ||
{ | ||
|
||
RenderableEntityBox::RenderableEntityBox(EntityNode& node) : | ||
_needsUpdate(true), | ||
_filledBox(true) | ||
{} | ||
|
||
void RenderableEntityBox::queueUpdate() | ||
{ | ||
_needsUpdate = true; | ||
} | ||
|
||
void RenderableEntityBox::setFillMode(bool fill) | ||
{ | ||
_filledBox = fill; | ||
} | ||
|
||
void RenderableEntityBox::updateGeometry() | ||
{ | ||
if (!_needsUpdate) return; | ||
|
||
_needsUpdate = false; | ||
|
||
|
||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include "render/RenderableGeometry.h" | ||
|
||
namespace entity | ||
{ | ||
|
||
class EntityNode; | ||
|
||
class RenderableEntityBox : | ||
public render::RenderableGeometry | ||
{ | ||
private: | ||
bool _needsUpdate; | ||
bool _filledBox; | ||
|
||
public: | ||
RenderableEntityBox(EntityNode& node); | ||
|
||
void queueUpdate(); | ||
void setFillMode(bool fill); | ||
|
||
virtual void updateGeometry() 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