mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add syntax highlighting (WIP)
This commit is contained in:
parent
ce1e9f76cf
commit
ed3865964b
16 changed files with 168 additions and 43 deletions
|
|
@ -98,13 +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,
|
||||
nullptr,
|
||||
0,
|
||||
pos - xvec * (width * 0.5f) * preset.scale,
|
||||
xvec * preset.scale,
|
||||
yvec * preset.scale
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue