Mouse position & selection; warning fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user