Example #1
0
void R_resize(int w, int h)
{
	client_rect.w = (float) w;
	client_rect.h = (float) h;
	aspect_ratio = client_rect.w / client_rect.h;
	camera.aspect = aspect_ratio;
	camera.size.y = camera.size.x / aspect_ratio;

	lmenuRect = ScreenRect(0,0,lmenuw,client_rect.h);
	rmenuRect = ScreenRect(client_rect.w - rmenuw,0,rmenuw,client_rect.h);

	debug_rendertarget.Resize(client_rect.w, client_rect.h);
	rt_temp0.Resize(client_rect.w, client_rect.h);
	rt_temp1.Resize(client_rect.w, client_rect.h);
}