make glider look nice
[carveJwlIkooP6JGAAIwe30JlM.git] / player_render.c
index 3498a0a70dc8196fb904000e875f7a355bbd0b78..40c2f9a73b5d5db2c3a828e9970ee93287ea5224 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "network.h"
 #include "player_remote.h"
+#include "player_glide.h"
 
 static void player_load_animation_reference( const char *path ){
    mdl_context *meta = &localplayer.skeleton_meta;
@@ -83,6 +84,8 @@ static void player_load_animation_reference( const char *path ){
    localplayer.final_mtx = vg_linear_alloc( vg_mem.rtmemory, mtx_size );
    netplayers.final_mtx = vg_linear_alloc( vg_mem.rtmemory, 
                                            mtx_size*NETWORK_MAX_PLAYERS );
+   netplayers.glider_mtx = vg_linear_alloc( vg_mem.rtmemory,
+                                            sizeof(m4x3f)*NETWORK_MAX_PLAYERS );
 }
 
 /* TODO: Standard model load */
@@ -592,7 +595,9 @@ static void player__render( camera *cam ){
 
    SDL_AtomicUnlock( &addon_system.sl_cache_using_resources );
 
+   glEnable( GL_CULL_FACE );
    player_glide_render( cam, world, &localplayer.pose );
+   glDisable( GL_CULL_FACE );
 }
 
 static void player_mirror_pose( mdl_keyframe pose[32],