jGL
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jGL::Glyph Class Reference

#include <glyph.h>

Public Member Functions

 Glyph ()=default
 
 Glyph (const FT_Face &face, unsigned char ch)
 
std::vector< unsigned char > & getPixels ()
 
glm::ivec2 getSize () const
 
std::array< glm::vec2, 6 > vertices (float x, float y, float scale)
 

Constructor & Destructor Documentation

◆ Glyph() [1/2]

jGL::Glyph::Glyph ( )
default

◆ Glyph() [2/2]

jGL::Glyph::Glyph ( const FT_Face &  face,
unsigned char  ch 
)

Member Function Documentation

◆ getPixels()

std::vector< unsigned char > & jGL::Glyph::getPixels ( )
inline

◆ getSize()

glm::ivec2 jGL::Glyph::getSize ( ) const
inline

◆ vertices()

std::array< glm::vec2, 6 > jGL::Glyph::vertices ( float  x,
float  y,
float  scale 
)
inline

The documentation for this class was generated from the following files: