iv::FontMesh Class Reference
#include <FontMesh.hpp>
Classes | |
struct | Geometry |
struct | LineState |
struct | Location |
Public Member Functions | |
FontMesh (Instance *inst) | |
Instance * | instance () const |
void | font_path (ResourcePath const &path) |
GLuint | program_id () |
GLuint | texture_id () |
Geometry | ComputeGeometry (std::string const &text, float font_size, Location const &location) |
void | GenerateMesh (std::string const &text, float font_size, Location const &location) |
void | Render (CameraState const &camera, float4x4 const &model_transform, float4 color, float4 preblend, bool translucent, std::optional< float > depth_override, ShaderScissor const &scissor) |
Public Attributes | |
ClientMarker | cm |
Detailed Description
Definition at line 13 of file FontMesh.hpp.
Constructor & Destructor Documentation
◆ FontMesh()
iv::FontMesh::FontMesh | ( | Instance * | inst | ) |
Definition at line 11 of file FontMesh.cpp.
Member Function Documentation
◆ instance()
Instance * iv::FontMesh::instance | ( | ) | const |
Definition at line 21 of file FontMesh.cpp.
◆ font_path()
void iv::FontMesh::font_path | ( | ResourcePath const & | path | ) |
Definition at line 26 of file FontMesh.cpp.
◆ program_id()
GLuint iv::FontMesh::program_id | ( | ) |
Definition at line 31 of file FontMesh.cpp.
◆ texture_id()
GLuint iv::FontMesh::texture_id | ( | ) |
Definition at line 36 of file FontMesh.cpp.
◆ ComputeGeometry()
FontMesh::Geometry iv::FontMesh::ComputeGeometry | ( | std::string const & | text, |
float | font_size, | ||
Location const & | location | ||
) |
Definition at line 48 of file FontMesh.cpp.
◆ GenerateMesh()
void iv::FontMesh::GenerateMesh | ( | std::string const & | text, |
float | font_size, | ||
Location const & | location | ||
) |
Definition at line 162 of file FontMesh.cpp.
◆ Render()
void iv::FontMesh::Render | ( | CameraState const & | camera, |
float4x4 const & | model_transform, | ||
float4 | color, | ||
float4 | preblend, | ||
bool | translucent, | ||
std::optional< float > | depth_override, | ||
ShaderScissor const & | scissor | ||
) |
Definition at line 361 of file FontMesh.cpp.
Member Data Documentation
◆ cm
ClientMarker iv::FontMesh::cm |
Definition at line 54 of file FontMesh.hpp.
The documentation for this class was generated from the following files:
- ivorium_graphics/Text/FontMesh.hpp
- ivorium_graphics/Text/FontMesh.cpp