Jump to content

Recommended Posts

Posted

void phoenix_camera::draw_rear_view_mirror(void)
{
try
{   		
	if( emanager.get_local_player() != NULL )
	{
		vrect_t rect;
		rect.x		= GUI(REARVIEWMIRROR)->x + (BORDER_SIZE >> 1);
		rect.y		= GUI(REARVIEWMIRROR)->y + TITTLE_BAR_SIZE;
		rect.width	= GUI(REARVIEWMIRROR)->w - BORDER_SIZE;
		rect.height = GUI(REARVIEWMIRROR)->h - TITTLE_BAR_SIZE;
		rect.pnext	= NULL;

		CViewSetup myView;
		phoenix_game_call::GetPlayerView(myView);//IBaseClientDLL*

		CViewSetup mirrorView		= myView;
		mirrorView.width			= rect.width;
		mirrorView.height			= rect.height;
		mirrorView.x				= rect.x;
		mirrorView.y				= rect.y;
		mirrorView.origin			= emanager.get_local_player()->GetEyesPos();
		mirrorView.angles			= emanager.get_local_player()->GetEyesAngle();
		mirrorView.angles.y			+= 180;
		mirrorView.fov				= 90.0f;
		phoenix_game_call::RenderViewEx(mirrorView,0,0);//IViewRender*
	}
}
catch (...)
{
	phoenix_debug::add_log("draw_rear_view_mirror(void) error...");
}
}

 

v3n0m4 P7TR1CK
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...