FontMesh.hpp
Go to the documentation of this file.
25 LineState() : basepoint( 0, 0 ), preadvance( 0 ), baseline_fixed( false ), ascender( 0 ), descender( 0 ){}
26 bool operator==( LineState const & b ) { return this->basepoint==b.basepoint && this->baseline_fixed==b.baseline_fixed && this->ascender==b.ascender && this->descender==b.descender; }
39 bool operator==( Location const & b ) { return this->size==b.size && this->line_spacing==b.line_spacing && this->line_state==b.line_state && this->skip_characters==b.skip_characters; }
64 Geometry ComputeGeometry( std::string const & text, float font_size, Location const & location );
66 void Render( CameraState const & camera, float4x4 const & model_transform, float4 color, float4 preblend, bool translucent, std::optional< float > depth_override, ShaderScissor const & scissor );