textures working on web, separation of vertex and index buffers (actually matters)

This commit is contained in:
veclavtalica
2025-02-21 23:34:01 +03:00
parent d76ea06470
commit 814269ab0c
5 changed files with 150 additions and 71 deletions

View File

@ -18,13 +18,9 @@ void game_tick(void) {
struct state *state = ctx.udata;
++state->counter;
m_sprite("nothing!",
(Rect) {
.x = 0,
.y = 0,
.w = 32,
.h = 32,
}
m_sprite("twn.png",
(Rect) { .w = 128, .h = 64, },
m_opt(stretch, true)
);
}