silly size mistake
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index b5029c4ca30745d85ce619c4e0e045e118d1ed2a..b07eadb318ec7488816f3573830ade349bae2636 100644 (file)
 static struct player_avatar localplayer_avatar;
 
 int main( int argc, char *argv[] ){
+#if 0
+   u8 buf[ 512 ];
+   bitpack_ctx ctx = {
+      .buffer = buf,
+      .buffer_len = 512,
+      .bytes = 0,
+      .mode = k_bitpack_compress
+   };
+
+   v4f q = {  0.388, -0.565, 0.515, 0.515 };
+   vg_info( "q: %f %f %f %f\n", q[0], q[1], q[2], q[3] );
+
+   /* compress */
+   bitpack_qquat( &ctx, q );
+
+   vg_info( "compressed bytes: %u\n", ctx.bytes );
+
+   /* decompress */
+   ctx.bytes = 0;
+   ctx.mode = k_bitpack_decompress;
+
+   bitpack_qquat( &ctx, q );
+   vg_info( "q: %f %f %f %f\n", q[0], q[1], q[2], q[3] );
+
+   return 0;
+#endif
+
    vg_mem.use_libc_malloc = 0;
    vg_set_mem_quota( 160*1024*1024 );
    vg_enter( argc, argv, "Voyager Game Engine" );