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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..