Skip to content

Commit

Permalink
#5584: Some docs and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 23, 2022
1 parent f9ca7d9 commit 7f46ab0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/irender.h
Expand Up @@ -498,7 +498,7 @@ class IRenderableText
// The position in world space where the text needs to be rendered
virtual const Vector3& getWorldPosition() = 0;

// The text to be rendered
// The text to be rendered. Returning an empty text will skip this renderable.
virtual const std::string& getText() = 0;

// The colour of the text
Expand Down
7 changes: 7 additions & 0 deletions radiantcore/rendersystem/backend/TextRenderer.h
@@ -1,11 +1,18 @@
#pragma once

#include <map>
#include "igl.h"
#include "irender.h"

namespace render
{

/**
* Text renderer implementation drawing the attached IRenderableText
* instances to the scene. Does not change any GL state/matrices.
*
* Requires a valid IGLFont reference at construction time.
*/
class TextRenderer final :
public ITextRenderer
{
Expand Down
1 change: 1 addition & 0 deletions radiantcore/selection/manipulators/RotateManipulator.cpp
Expand Up @@ -139,6 +139,7 @@ void RotateManipulator::clearRenderables()
_circleSphere.clear();
_pivotPoint.clear();
_angleText.clear();

_lineShader.reset();
_pivotPointShader.reset();
_textRenderer.reset();
Expand Down

0 comments on commit 7f46ab0

Please sign in to comment.