Wasabi
Public Attributes | List of all members
W_FONT_OBJECT Struct Reference

#include <WText.hpp>

Public Attributes

uint32_t ID
 
std::string name
 
void * cdata
 
int num_chars
 
int char_height
 
class WGeometrytextGeometry
 
class WMaterialtextMaterial
 
class WImageimg
 
vector< W_RENDERING_TEXTtexts
 

Detailed Description

Represents a font created by WTextComponent. A font also tracks the texts that use it for the next frame.

Member Data Documentation

◆ cdata

void* W_FONT_OBJECT::cdata

stb library data

◆ char_height

int W_FONT_OBJECT::char_height

Height of each character, as created

◆ ID

uint32_t W_FONT_OBJECT::ID

ID of the font

◆ img

class WImage* W_FONT_OBJECT::img

The bitmap created by stb

◆ name

std::string W_FONT_OBJECT::name

Name of the font, as loaded

◆ num_chars

int W_FONT_OBJECT::num_chars

Number of characters loaded by stb

◆ textGeometry

class WGeometry* W_FONT_OBJECT::textGeometry

Geometry to use to render all the texts of this font

◆ textMaterial

class WMaterial* W_FONT_OBJECT::textMaterial

Material to use to render the geometry

◆ texts

vector<W_RENDERING_TEXT> W_FONT_OBJECT::texts

A list of texts using this font that will be rendered next frame


The documentation for this struct was generated from the following file: