jGL
Loading...
Searching...
No Matches
vkFont.h
Go to the documentation of this file.
1#ifndef VKFONT_H
2#define VKFONT_H
3
4#include <jGL/glyph.h>
5#include <jGL/font.h>
6
11
12#include <algorithm>
13
14
15namespace jGL::Vulkan
16{
17 class vkFont : public Font
18 {
19
20 public:
21
22 vkFont(const Device & device, const Command & command, uint8_t w)
23 : Font(w), device(device), command(command)
24 {
25 upload(bw, bh);
26 }
27
29
30 const VkImageView & getGlyphView() const { return view; }
31
32 private:
33
34 const Device & device;
35 const Command & command;
36
37 VkImageView view;
38
39 void upload(uint16_t w, uint16_t h);
40 };
41}
42
43#endif /* VKFONT_H */
Definition font.h:14
uint16_t bh
Definition font.h:41
uint16_t bw
Definition font.h:41
Definition command.h:12
Definition device.h:10
Definition vkFont.h:18
const VkImageView & getGlyphView() const
Definition vkFont.h:30
vkFont(const Device &device, const Command &command, uint8_t w)
Definition vkFont.h:22
~vkFont()
Definition vkFont.h:28
Definition buffer.h:10