stbi: make compilation faster by generating a stbi.o file
parent
edc44993d1
commit
869c8e331e
|
@ -0,0 +1,3 @@
|
|||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
|
@ -8,9 +8,9 @@ module stbi
|
|||
// import gl
|
||||
|
||||
#flag -I @VROOT/thirdparty/stb_image
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
||||
#flag @VROOT/thirdparty/stb_image/stbi.o
|
||||
|
||||
pub struct Image {
|
||||
mut:
|
||||
width int
|
||||
|
|
Loading…
Reference in New Issue