#define VG_TOOLS
#include "vg/vg.h"
+#define STB_IMAGE_IMPLEMENTATION
+#include "stb/stb_image.h"
+
// Super basic model compiler
int main( int argc, char *argv[] )
{
u32 buff = 0;
for( int b = 31; b >= 0; b-- )
{
- buff |= data[pixel*4+3]>128?0x1<<b:0;
+ buff |= data[pixel*4]>128?0x1<<b:0;
pixel++;
if( pixel >= pixel_max )
free(data);
fclose(output);
+
+ vg_success( "Font compiled successfully\n" );
}
else
{