Mouse position & selection; warning fixes

This commit is contained in:
2023-02-02 23:52:15 +00:00
parent fcf6f76949
commit 7e1eaaae64
22 changed files with 347 additions and 137 deletions

View File

@@ -116,14 +116,6 @@ void sprite_initialize()
glEnableVertexAttribArray(0);
}
struct glrect sprite_get_rect(struct sprite *sprite) {
if (sprite->tex->opts.animation) {
} else {
return tex_get_rect(sprite->tex);
}
}
void tex_draw(struct Texture *tex, float pos[2], float angle, float size[2], float offset[2], struct glrect r) {
mfloat_t model[16] = { 0.f };
mfloat_t r_model[16] = { 0.f };
@@ -221,4 +213,4 @@ void video_draw(struct datastream *stream, mfloat_t position[2], mfloat_t size[2
// TODO: video bind VAO
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
}
}