mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add FontStylesScheme
This commit is contained in:
parent
b15725913e
commit
ce1e9f76cf
7 changed files with 83 additions and 17 deletions
|
|
@ -98,11 +98,13 @@ void TextsRenderer::renderNote(
|
|||
pos + xvec * (width * 0.5f * preset.scale))) {
|
||||
return;
|
||||
}
|
||||
static FontStylesScheme styles {};
|
||||
auto color = preset.color;
|
||||
batch.setColor(glm::vec4(color.r, color.g, color.b, color.a * opacity));
|
||||
font.draw(
|
||||
batch,
|
||||
text,
|
||||
&styles,
|
||||
pos - xvec * (width * 0.5f) * preset.scale,
|
||||
xvec * preset.scale,
|
||||
yvec * preset.scale
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue