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

#include <vkFont.h>

Inheritance diagram for jGL::Vulkan::vkFont:
Inheritance graph
[legend]
Collaboration diagram for jGL::Vulkan::vkFont:
Collaboration graph
[legend]

Public Member Functions

 vkFont (const Device &device, const Command &command, uint8_t w)
 
 ~vkFont ()
 
const VkImageView & getGlyphView () const
 
- Public Member Functions inherited from jGL::Font
 Font (uint8_t w)
 
virtual ~Font ()
 
const glm::ivec2 getBitmapSize () const
 
std::array< glm::vec4, 6 > getGlyphVertices (float x, float y, float scale, unsigned char c)
 
glm::vec4 getGlyphOffset (unsigned char c)
 
glm::ivec2 getGlyphSize (unsigned char c)
 
float spacing (float scale)
 
void bind (unsigned int b)
 

Additional Inherited Members

- Protected Attributes inherited from jGL::Font
uint8_t width
 
std::map< unsigned char, Glyphglyphs
 
std::map< unsigned char, glm::vec4 > glyphOffset
 
std::shared_ptr< TexturefontBitmap
 
std::vector< std::byte > bitmapPixels
 
uint16_t bw
 
uint16_t bh
 

Constructor & Destructor Documentation

◆ vkFont()

jGL::Vulkan::vkFont::vkFont ( const Device device,
const Command command,
uint8_t  w 
)
inline

◆ ~vkFont()

jGL::Vulkan::vkFont::~vkFont ( )
inline

Member Function Documentation

◆ getGlyphView()

const VkImageView & jGL::Vulkan::vkFont::getGlyphView ( ) const
inline

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