/* * R_InitSkeletalCache */ void R_InitSkeletalCache( void ) { r_skmcachepool = R_AllocPool( r_mempool, "SKM Cache" ); r_skmcache_head = NULL; r_skmcache_free = NULL; }
/* * RB_Init */ void RB_Init( void ) { memset( &rb, 0, sizeof( rb ) ); rb.mempool = R_AllocPool( NULL, "Rendering Backend" ); // set default OpenGL state RB_SetGLDefaults(); rb.gl.scissor[2] = glConfig.width; rb.gl.scissor[3] = glConfig.height; // initialize shading RB_InitShading(); // create VBO's we're going to use for streamed data RB_RegisterStreamVBOs(); RP_PrecachePrograms(); }
/* * RB_Init */ void RB_Init( void ) { memset( &rb, 0, sizeof( rb ) ); rb.mempool = R_AllocPool( NULL, "Rendering Backend" ); // set default OpenGL state RB_SetGLDefaults(); // initialize shading RB_InitShading(); // intialize batching RB_InitBatchMesh(); // create VBO's we're going to use for streamed data RB_RegisterStreamVBOs(); // upload persistent quad indices RB_UploadStaticQuadIndices(); }