gg: clean up draw_image()

This commit is contained in:
Alexander Medvednikov 2020-08-04 01:26:56 +02:00
parent 7a7572e478
commit 60c642f42d
4 changed files with 21 additions and 30 deletions

View file

@ -24,6 +24,10 @@ fn C.stbi_load_from_memory() voidptr
fn C.stbi_image_free()
fn C.stbi_set_flip_vertically_on_load()
fn init() {
set_flip_vertically_on_load(false)
}
pub fn load(path string) Image {
ext := path.all_after_last('.')
mut res := Image {