Lines Matching refs:pcam

106 static gfx_rv dolist_sort( dolist_t * pdolist, camera_t * pcam, bool_t do_reflect );
124 static gfx_rv do_grid_lighting( renderlist_t * prlist, dynalist_t * pdylist, camera_t * pcam );
125 static gfx_rv gfx_make_dynalist( dynalist_t * pdylist, camera_t * pcam );
257 static gfx_rv gfx_project_cam_view( camera_t * pcam );
1872 gfx_rv gfx_project_cam_view( camera_t * pcam ) in gfx_project_cam_view() argument
1885 if ( NULL == pcam ) pcam = PCamera; in gfx_project_cam_view()
1886 if ( NULL == pcam ) in gfx_project_cam_view()
1893 ztemp = ( pcam->pos.z ); in gfx_project_cam_view()
1908 xfin = pcam->pos.x + ( numstep * mTemp.CNV( 0, 2 ) ); // xgg // 0,2 in gfx_project_cam_view()
1909 yfin = pcam->pos.y + ( numstep * mTemp.CNV( 1, 2 ) ); // 1,2 in gfx_project_cam_view()
1928 xfin = pcam->pos.x + ( numstep * mTemp.CNV( 0, 2 ) ); // xgg // 0,2 in gfx_project_cam_view()
1929 yfin = pcam->pos.y + ( numstep * mTemp.CNV( 1, 2 ) ); // 1,2 in gfx_project_cam_view()
1949 xfin = pcam->pos.x + ( numstep * mTemp.CNV( 0, 2 ) ); // xgg // 0,2 in gfx_project_cam_view()
1950 yfin = pcam->pos.y + ( numstep * mTemp.CNV( 1, 2 ) ); // 1,2 in gfx_project_cam_view()
1969 xfin = pcam->pos.x + ( numstep * mTemp.CNV( 0, 2 ) ); // xgg // 0,2 in gfx_project_cam_view()
1970 yfin = pcam->pos.y + ( numstep * mTemp.CNV( 1, 2 ) ); // 1,2 in gfx_project_cam_view()
2386 …nderlist_t * prlist, dolist_t * pdolist, dynalist_t * pdylist, ego_mpd_t * pmesh, camera_t * pcam ) in render_scene_init() argument
2396 if ( gfx_error == renderlist_make( prlist, pmesh, pcam ) ) in render_scene_init()
2420 if ( gfx_error == do_grid_lighting( prlist, pdylist, pcam ) ) in render_scene_init()
2450 if ( gfx_error == update_all_prt_instance( pcam ) ) in render_scene_init()
3060 gfx_rv render_scene( ego_mpd_t * pmesh, camera_t * pcam ) in render_scene() argument
3066 if ( NULL == pcam ) pcam = PCamera; in render_scene()
3067 if ( NULL == pcam ) in render_scene()
3085 if ( gfx_error == render_scene_init( &renderlist, &_dolist, &dynalist, pmesh, pcam ) ) in render_scene()
3098 if ( gfx_error == dolist_sort( &_dolist, pcam, btrue ) ) in render_scene()
3124 if ( gfx_error == dolist_sort( &_dolist, pcam, bfalse ) ) in render_scene()
3454 void render_world( camera_t * pcam ) in render_world() argument
3460 gfx_begin_3d( pcam ); in render_world()
3468 render_scene( PMesh, pcam ); in render_world()
3476 if ( pcam->motion_blur > 0 ) in render_world()
3479 GL_DEBUG( glAccum )( GL_MULT, pcam->motion_blur ); in render_world()
3480 GL_DEBUG( glAccum )( GL_ACCUM, 1.0f - pcam->motion_blur ); in render_world()
3487 render_all_billboards( pcam ); in render_world()
4260 gfx_rv render_all_billboards( camera_t * pcam ) in render_all_billboards() argument
4264 if ( NULL == pcam ) pcam = PCamera; in render_all_billboards()
4265 if ( NULL == pcam ) in render_all_billboards()
4271 gfx_begin_3d( pcam ); in render_all_billboards()
4275 cam_rgt.x = pcam->mView.CNV( 0, 0 ); in render_all_billboards()
4276 cam_rgt.y = pcam->mView.CNV( 1, 0 ); in render_all_billboards()
4277 cam_rgt.z = pcam->mView.CNV( 2, 0 ); in render_all_billboards()
4279 cam_up.x = -pcam->mView.CNV( 0, 1 ); in render_all_billboards()
4280 cam_up.y = -pcam->mView.CNV( 1, 1 ); in render_all_billboards()
4281 cam_up.z = -pcam->mView.CNV( 2, 1 ); in render_all_billboards()
4341 void draw_all_lines( camera_t * pcam ) in draw_all_lines() argument
4347 gfx_begin_3d( pcam ); in draw_all_lines()
4819 gfx_rv dolist_sort( dolist_t * pdolist, camera_t * pcam, bool_t do_reflect ) in dolist_sort() argument
4841 if ( NULL == pcam ) pcam = PCamera; in dolist_sort()
4842 if ( NULL == pcam ) in dolist_sort()
4848 mat_getCamForward( pcam->mView.v, vcam.v ); in dolist_sort()
4873 vtmp = fvec3_sub( pos_tmp.v, pcam->pos.v ); in dolist_sort()
4881 vtmp = fvec3_sub( PrtList.lst[iprt].inst.pos.v, pcam->pos.v ); in dolist_sort()
4885 vtmp = fvec3_sub( PrtList.lst[iprt].inst.ref_pos.v, pcam->pos.v ); in dolist_sort()
4983 gfx_rv renderlist_make( renderlist_t * prlist, ego_mpd_t * pmesh, camera_t * pcam ) in renderlist_make() argument
5006 if ( NULL == pcam ) pcam = PCamera; in renderlist_make()
5007 if ( NULL == pcam ) in renderlist_make()
5027 if ( rv_error == gfx_project_cam_view( pcam ) ) in renderlist_make()
5696 void gfx_begin_3d( camera_t * pcam ) in gfx_begin_3d() argument
5701 GL_DEBUG( glLoadMatrixf )( pcam->mProjection.v ); in gfx_begin_3d()
5706 GL_DEBUG( glLoadMatrixf )( pcam->mView.v ); in gfx_begin_3d()
6171 gfx_rv gfx_make_dynalist( dynalist_t * pdylist, camera_t * pcam ) in gfx_make_dynalist() argument
6205 vdist = fvec3_sub( prt_get_pos_v( prt_bdl.prt_ptr ), pcam->track_pos.v ); in gfx_make_dynalist()
6260 gfx_rv do_grid_lighting( renderlist_t * prlist, dynalist_t * pdylist, camera_t * pcam ) in do_grid_lighting() argument
6290 if ( NULL == pcam ) pcam = PCamera; in do_grid_lighting()
6291 if ( NULL == pcam ) in do_grid_lighting()
6340 gfx_make_dynalist( pdylist, pcam ); in do_grid_lighting()
6409 diff.x = pdyna->pos.x - pcam->center.x; in do_grid_lighting()
6410 diff.y = pdyna->pos.y - pcam->center.y; in do_grid_lighting()
6411 … diff.z = pdyna->pos.z - pcam->center.z - 90.0f; // evaluated at the "head height" of a character in do_grid_lighting()
6418 fake_dynalight.pos.x += dyna_weight * ( pdyna->pos.x - pcam->center.x ); in do_grid_lighting()
6419 fake_dynalight.pos.y += dyna_weight * ( pdyna->pos.y - pcam->center.y ); in do_grid_lighting()
6420 fake_dynalight.pos.z += dyna_weight * ( pdyna->pos.z - pcam->center.z ); in do_grid_lighting()
6434 fake_dynalight.pos.x = fake_dynalight.pos.x / dyna_weight_sum + pcam->center.x; in do_grid_lighting()
6435 fake_dynalight.pos.y = fake_dynalight.pos.y / dyna_weight_sum + pcam->center.y; in do_grid_lighting()
6436 fake_dynalight.pos.z = fake_dynalight.pos.z / dyna_weight_sum + pcam->center.z; in do_grid_lighting()