TextWriter class
Public static functions
- static void setDefaultFont(FontBase* font)
- static void setupGraphics(DrawContext* context)
Constructors, destructors, conversion operators
- TextWriter(DrawContext* context) explicit
- TextWriter(DrawContext* context, const Viewport* viewport)
- ~TextWriter() virtual
Public functions
- auto getDefaultFont() -> FontBase*
- void getCursorFromTopLeft(Vector2f* pos) const
- void setCursorFromTopLeft(const Vector2f& pos)
- void setScaleFromFontSize(const Vector2f& fontSize)
- void setScaleFromFontHeight(float fontHeight)
- void setProjectionAndCamera(const Projection* projection, const Camera* camera)
- void setLineSpaceFromLineHeight(float lineHeight)
- void setFormatBuffer(char16_t*, int)
- void setDrawContext(DrawContext* context)
- void beginDraw()
- void endDraw()
- void printf(const char16_t* format, ...)
- void vprintfImpl_(const char16_t*, std::va_list, bool, BoundBox2f*)
- void printfWithCalcRect(BoundBox2f*, const char16_t*, ...)
- void printf(const char* format, ...)
- void vprintfImpl_(const char*, std::va_list, bool, BoundBox2f*)
- void printfWithCalcRect(BoundBox2f*, const char*, ...)
- void calcFormatStringRect(BoundBox2f*, const char16_t*, ...)
- void calcFormatStringRect(BoundBox2f*, const char*, ...)
- void printImpl_(const char16_t*, int, bool, BoundBox2f*, const Projection*, const Camera*)
- void printImpl_(const char16_t*, int, bool, BoundBox2f*)
- void printImpl_(const char*, int, bool, BoundBox2f*)