Skip to content

Commit

Permalink
GRAPHICS: Add shader rendering methods to Font
Browse files Browse the repository at this point in the history
  • Loading branch information
mirv-sillyfish authored and DrMcCoy committed Nov 17, 2018
1 parent ce9df91 commit ad51e7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/graphics/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <vector>

#include "glm/mat4x4.hpp"

#include "src/common/ustring.h"

#include "src/graphics/types.h"
Expand Down Expand Up @@ -63,6 +65,10 @@ class Font {
/** Draw this character. */
virtual void draw(uint32 c) const = 0;

virtual void renderBind(const glm::mat4 &UNUSED(transform)) const {}
virtual void render(uint32 UNUSED(c), float &UNUSED(x), float &UNUSED(y), float *UNUSED(rgba)) const {}
virtual void renderUnbind() const {}

float split(const Common::UString &line, std::vector<Common::UString> &lines,
float maxWidth = 0.0f, float maxHeight = 0.0f, bool trim = true) const;
float split(Common::UString &line, float maxWidth, float maxHeight = 0.0f, bool trim = true) const;
Expand Down

0 comments on commit ad51e7a

Please sign in to comment.