-#define VG_FRAMEBUFFER_RESIZE 1
-#include "vg/vg.h"
-#include "anyascii/anyascii.h"
-
-typedef struct ray_hit ray_hit;
-struct ray_hit
-{
- float dist;
- u32 *tri;
- v3f pos, normal;
-};
-
-static int network_scores_updated = 0;
-
-static u32 utf8_byte0_byte_count( u8 char0 )
-{
- for( u32 k=2; k<4; k++ )
- {
- if( !(char0 & (0x80 >> k)) )
- return k;
- }
-
- return 0;
-}
-
-static void str_utf8_collapse( const char *str, char *buf, u32 length )
-{
- u8 *ustr = (u8 *)str;
- u32 utf32_code = 0x00000000;
- u32 i=0, j=0, utf32_byte_ct=0;