8 #include "VectorMathDecl.h"
9 #include "DebugRendering.h"
10 #include "IRenderableFilter.h"
24 void SetFont(
const FontInstance* pFont) { m_pFont = pFont; }
26 void Print (
float x,
float y,
float z,
const char* text,
Eegeo::v4* pColor, u32 alignment,
float scaling = 1.0f);
27 void Print (
float x,
float y,
float z,
const char* text, u32 rgba, u32 alignment,
float scalingX = 1.0f,
float scalingY = 1.0f);
29 void PrintMultiLine (
float x,
float y,
float z,
const char* text, u32 rgba, u32 alignment,
float screenHeight,
float scalingX = 1.0f,
float scalingY = 1.0f);
31 void PrintMultiLineClipped (
float x,
float y,
float z,
const char* text, u32 rgba, u32 alignment,
float minY,
float MaxY,
float scalingX = 1.0f,
float scalingY = 1.0f);
33 void PrintML (
float x,
float y,
float z,
const char *text,
Eegeo::v4* pColor, u32 alignment);
34 float PrintBox (
float x,
float y,
float z,
float width,
const char *text, u32 color, u32 alignment,
bool bCalcHeightNoDraw,
float scalingX = 1.0f,
float scalingY = 1.0f);
37 int FindTextChar (
const char *text,
int start,
int length,
int ch);
38 void InternalPrint (
float x,
float y,
float z,
const char *text, u32 rgba,
int count,
float spacing,
float scaleX,
float scaleY);
40 float GetHorizontalAlign(
const char *textUtf8,
int length, u32 alignment,
float scaleX)
const;
41 float GetVerticalAlign(u32 alignment,
float scaleY)
const;
46 std::vector<u32> m_unicodeCharactersScatch;
49 inline void FontRenderer::PrintMultiLine(
float x,
float y,
float z,
const char* text, u32 rgba, u32 alignment,
float screenHeight,
float scalingX,
float scalingY)
51 PrintMultiLineClipped(x, y, z, text, rgba, alignment, 0.0f, screenHeight, scalingX, scalingY);