jGL
Loading...
Searching...
No Matches
include
jGL
Vulkan
Text
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
7
#include <
jGL/Vulkan/Device/device.h
>
8
#include <
jGL/Vulkan/Command/command.h
>
9
#include <
jGL/Vulkan/Texture/vkTexture.h
>
10
#include <
jGL/Vulkan/Texture/vkSampler.h
>
11
12
#include <algorithm>
13
14
15
namespace
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
28
~vkFont
() {}
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 */
jGL::Font
Definition
font.h:14
jGL::Font::bh
uint16_t bh
Definition
font.h:41
jGL::Font::bw
uint16_t bw
Definition
font.h:41
jGL::Vulkan::Command
Definition
command.h:12
jGL::Vulkan::Device
Definition
device.h:10
jGL::Vulkan::vkFont
Definition
vkFont.h:18
jGL::Vulkan::vkFont::getGlyphView
const VkImageView & getGlyphView() const
Definition
vkFont.h:30
jGL::Vulkan::vkFont::vkFont
vkFont(const Device &device, const Command &command, uint8_t w)
Definition
vkFont.h:22
jGL::Vulkan::vkFont::~vkFont
~vkFont()
Definition
vkFont.h:28
command.h
device.h
font.h
glyph.h
jGL::Vulkan
Definition
buffer.h:10
vkSampler.h
vkTexture.h
Generated by
1.9.8