Lines Matching defs:r_refdef

71 refdef_t	r_refdef;
232 r_refdef.xOrigin = XCENTERING;
233 r_refdef.yOrigin = YCENTERING;
374 Called every time the vid structure or r_refdef changes.
385 R_SetVrect (pvrect, &r_refdef.vrect, lineadj);
387 r_refdef.horizontalFieldOfView = 2.0 * tan (r_refdef.fov_x/360*M_PI);
388 r_refdef.fvrectx = (float)r_refdef.vrect.x;
389 r_refdef.fvrectx_adj = (float)r_refdef.vrect.x - 0.5;
390 r_refdef.vrect_x_adj_shift20 = (r_refdef.vrect.x<<20) + (1<<19) - 1;
391 r_refdef.fvrecty = (float)r_refdef.vrect.y;
392 r_refdef.fvrecty_adj = (float)r_refdef.vrect.y - 0.5;
393 r_refdef.vrectright = r_refdef.vrect.x + r_refdef.vrect.width;
394 r_refdef.vrectright_adj_shift20 = (r_refdef.vrectright<<20) + (1<<19) - 1;
395 r_refdef.fvrectright = (float)r_refdef.vrectright;
396 r_refdef.fvrectright_adj = (float)r_refdef.vrectright - 0.5;
397 r_refdef.vrectrightedge = (float)r_refdef.vrectright - 0.99;
398 r_refdef.vrectbottom = r_refdef.vrect.y + r_refdef.vrect.height;
399 r_refdef.fvrectbottom = (float)r_refdef.vrectbottom;
400 r_refdef.fvrectbottom_adj = (float)r_refdef.vrectbottom - 0.5;
402 r_refdef.aliasvrect.x = (int)(r_refdef.vrect.x * r_aliasuvscale);
403 r_refdef.aliasvrect.y = (int)(r_refdef.vrect.y * r_aliasuvscale);
404 r_refdef.aliasvrect.width = (int)(r_refdef.vrect.width * r_aliasuvscale);
405 r_refdef.aliasvrect.height = (int)(r_refdef.vrect.height * r_aliasuvscale);
406 r_refdef.aliasvrectright = r_refdef.aliasvrect.x +
407 r_refdef.aliasvrect.width;
408 r_refdef.aliasvrectbottom = r_refdef.aliasvrect.y +
409 r_refdef.aliasvrect.height;
412 xOrigin = r_refdef.xOrigin;
413 yOrigin = r_refdef.yOrigin;
415 screenAspect = r_refdef.vrect.width*pixelAspect /
416 r_refdef.vrect.height;
421 verticalFieldOfView = r_refdef.horizontalFieldOfView / screenAspect;
429 xcenter = ((float)r_refdef.vrect.width * XCENTERING) +
430 r_refdef.vrect.x - 0.5;
432 ycenter = ((float)r_refdef.vrect.height * YCENTERING) +
433 r_refdef.vrect.y - 0.5;
436 xscale = r_refdef.vrect.width / r_refdef.horizontalFieldOfView;
442 xscaleshrink = (r_refdef.vrect.width-6)/r_refdef.horizontalFieldOfView;
446 screenedge[0].normal[0] = -1.0 / (xOrigin*r_refdef.horizontalFieldOfView);
453 1.0 / ((1.0-xOrigin)*r_refdef.horizontalFieldOfView);
473 res_scale = sqrt ((double)(r_refdef.vrect.width * r_refdef.vrect.height) /
475 (2.0 / r_refdef.horizontalFieldOfView);
963 r_refdef must be set before the first call