summaryrefslogtreecommitdiff
path: root/src/editor/view2d.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-10 05:18:33 +0100
committeraura <nw@moneybot.cc>2026-03-10 05:18:33 +0100
commit30151d75dddd651faa1b27148a052ced7d0f190a (patch)
tree30b9374d59ecdd83296f7a2b7aa008340b95daf5 /src/editor/view2d.cpp
parent31b77ed2e0c037e5718b9ecd06d3941600cc8815 (diff)
2d batch rendering
Diffstat (limited to 'src/editor/view2d.cpp')
-rw-r--r--src/editor/view2d.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/editor/view2d.cpp b/src/editor/view2d.cpp
index 7b97687..8dbe42c 100644
--- a/src/editor/view2d.cpp
+++ b/src/editor/view2d.cpp
@@ -530,9 +530,9 @@ void gui_editor_2dview_draw_polygons( GUI_EDITOR_2DVIEW* view, I32 x, I32 y ) {
} );
if( props->tex )
- gl_2d_textured_polygon( _gui.gl2d_font, vertices.data, vertices.size, props->tex );
+ gl_2d_textured_polygon( _gui.batch, vertices.data, vertices.size, props->tex );
else
- gl_2d_polygon( _gui.gl2d, vertices.data, vertices.size );
+ gl_2d_polygon( _gui.batch, vertices.data, vertices.size );
}
else {
for( U32 i = 0; i < p->vertices.size; ++i ) {
@@ -632,7 +632,7 @@ void gui_editor_2dview_draw_sprites( GUI_EDITOR_2DVIEW* view, I32 x, I32 y ) {
else {
gl_2d_frect(
- _gui.gl2d,
+ _gui.batch,
{ (F32)((I32)pos.x - w/2), (F32)((I32)pos.y - h/2) },
{ (F32)w, (F32)h },
s->clr
@@ -640,7 +640,7 @@ void gui_editor_2dview_draw_sprites( GUI_EDITOR_2DVIEW* view, I32 x, I32 y ) {
}
if( s->tex ) {
gl_2d_textured_frect(
- _gui.gl2d_font,
+ _gui.batch,
{ (F32)((I32)pos.x - w/2), (F32)((I32)pos.y - h/2) },
{ (F32)w, (F32)h },
s->tex,