Home
last modified time | relevance | path

Searched refs:r_refdef (Results 1 – 25 of 54) sorted by relevance

123

/external/quake/quake/src/WinQuake/
Dr_main.cpp69 refdef_t r_refdef; variable
227 r_refdef.xOrigin = XCENTERING; in R_Init()
228 r_refdef.yOrigin = YCENTERING; in R_Init()
365 R_SetVrect (pvrect, &r_refdef.vrect, lineadj); in R_ViewChanged()
367 r_refdef.horizontalFieldOfView = 2.0 * tan (r_refdef.fov_x/360*M_PI); in R_ViewChanged()
368 r_refdef.fvrectx = (float)r_refdef.vrect.x; in R_ViewChanged()
369 r_refdef.fvrectx_adj = (float)r_refdef.vrect.x - 0.5; in R_ViewChanged()
370 r_refdef.vrect_x_adj_shift20 = (r_refdef.vrect.x<<20) + (1<<19) - 1; in R_ViewChanged()
371 r_refdef.fvrecty = (float)r_refdef.vrect.y; in R_ViewChanged()
372 r_refdef.fvrecty_adj = (float)r_refdef.vrect.y - 0.5; in R_ViewChanged()
[all …]
Dgl_screen.cpp311 r_refdef.vrect.width = (int) (vid.width * size); in SCR_CalcRefdef()
312 if (r_refdef.vrect.width < 96) in SCR_CalcRefdef()
314 size = 96.0 / r_refdef.vrect.width; in SCR_CalcRefdef()
315 r_refdef.vrect.width = 96; // min for icons in SCR_CalcRefdef()
318 r_refdef.vrect.height = (int)(vid.height * size); in SCR_CalcRefdef()
319 if ((int)(r_refdef.vrect.height) > (int)(vid.height - sb_lines)) in SCR_CalcRefdef()
320 r_refdef.vrect.height = vid.height - sb_lines; in SCR_CalcRefdef()
321 if ((int)(r_refdef.vrect.height) > (int)(vid.height)) in SCR_CalcRefdef()
322 r_refdef.vrect.height = vid.height; in SCR_CalcRefdef()
323 r_refdef.vrect.x = (vid.width - r_refdef.vrect.width)/2; in SCR_CalcRefdef()
[all …]
Dr_misc.cpp76 startangle = r_refdef.viewangles[1]; in R_TimeRefresh_f()
81 r_refdef.viewangles[1] = i/128.0*360.0; in R_TimeRefresh_f()
89 vr.x = r_refdef.vrect.x; in R_TimeRefresh_f()
90 vr.y = r_refdef.vrect.y; in R_TimeRefresh_f()
91 vr.width = r_refdef.vrect.width; in R_TimeRefresh_f()
92 vr.height = r_refdef.vrect.height; in R_TimeRefresh_f()
100 r_refdef.viewangles[1] = startangle; in R_TimeRefresh_f()
119 x += r_refdef.vrect.x; in R_LineGraph()
120 y += r_refdef.vrect.y; in R_LineGraph()
169 if (r_refdef.vrect.width <= MAX_TIMINGS) in R_TimeGraph()
[all …]
Dr_aclip.cpp84 if (out->v[0] < r_refdef.aliasvrect.x) in R_Alias_clip_z()
86 if (out->v[1] < r_refdef.aliasvrect.y) in R_Alias_clip_z()
88 if (out->v[0] > r_refdef.aliasvrectright) in R_Alias_clip_z()
90 if (out->v[1] > r_refdef.aliasvrectbottom) in R_Alias_clip_z()
104 scale = (float)(r_refdef.aliasvrect.x - pfv0->v[0]) / in R_Alias_clip_left()
111 scale = (float)(r_refdef.aliasvrect.x - pfv1->v[0]) / in R_Alias_clip_left()
127 scale = (float)(r_refdef.aliasvrectright - pfv0->v[0]) / in R_Alias_clip_right()
134 scale = (float)(r_refdef.aliasvrectright - pfv1->v[0]) / in R_Alias_clip_right()
149 scale = (float)(r_refdef.aliasvrect.y - pfv0->v[1]) / in R_Alias_clip_top()
156 scale = (float)(r_refdef.aliasvrect.y - pfv1->v[1]) / in R_Alias_clip_top()
[all …]
Dview.cpp711 yaw = r_refdef.viewangles[YAW]; in CalcGunAngle()
712 pitch = -r_refdef.viewangles[PITCH]; in CalcGunAngle()
714 yaw = angledelta(yaw - r_refdef.viewangles[YAW]) * 0.4; in CalcGunAngle()
719 pitch = angledelta(-pitch - r_refdef.viewangles[PITCH]) * 0.4; in CalcGunAngle()
750 cl.viewent.angles[YAW] = r_refdef.viewangles[YAW] + yaw; in CalcGunAngle()
751 cl.viewent.angles[PITCH] = - (r_refdef.viewangles[PITCH] + pitch); in CalcGunAngle()
772 if (r_refdef.vieworg[0] < ent->origin[0] - 14) in V_BoundOffsets()
773 r_refdef.vieworg[0] = ent->origin[0] - 14; in V_BoundOffsets()
774 else if (r_refdef.vieworg[0] > ent->origin[0] + 14) in V_BoundOffsets()
775 r_refdef.vieworg[0] = ent->origin[0] + 14; in V_BoundOffsets()
[all …]
Dd_modech.cpp75 d_pix_min = r_refdef.vrect.width / 320; in D_ViewChanged()
79 d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5); in D_ViewChanged()
80 d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5); in D_ViewChanged()
89 d_vrectx = r_refdef.vrect.x; in D_ViewChanged()
90 d_vrecty = r_refdef.vrect.y; in D_ViewChanged()
91 d_vrectright_particle = r_refdef.vrectright - d_pix_max; in D_ViewChanged()
93 r_refdef.vrectbottom - (d_pix_max << d_y_aspect_shift); in D_ViewChanged()
Dchase.cpp73 chase_dest[i] = r_refdef.vieworg[i] in Chase_Update()
76 chase_dest[2] = r_refdef.vieworg[2] + chase_up.value; in Chase_Update()
79 VectorMA (r_refdef.vieworg, 4096, forward, dest); in Chase_Update()
80 TraceLine (r_refdef.vieworg, dest, stop); in Chase_Update()
83 VectorSubtract (stop, r_refdef.vieworg, stop); in Chase_Update()
87 r_refdef.viewangles[PITCH] = -atan(stop[2] / dist) / M_PI * 180; in Chase_Update()
90 VectorCopy (chase_dest, r_refdef.vieworg); in Chase_Update()
Dr_draw.cpp114 if (u0 < r_refdef.fvrectx_adj) in R_EmitEdge()
115 u0 = r_refdef.fvrectx_adj; in R_EmitEdge()
116 if (u0 > r_refdef.fvrectright_adj) in R_EmitEdge()
117 u0 = r_refdef.fvrectright_adj; in R_EmitEdge()
121 if (v0 < r_refdef.fvrecty_adj) in R_EmitEdge()
122 v0 = r_refdef.fvrecty_adj; in R_EmitEdge()
123 if (v0 > r_refdef.fvrectbottom_adj) in R_EmitEdge()
124 v0 = r_refdef.fvrectbottom_adj; in R_EmitEdge()
142 if (r_u1 < r_refdef.fvrectx_adj) in R_EmitEdge()
143 r_u1 = r_refdef.fvrectx_adj; in R_EmitEdge()
[all …]
Dd_sprite.cpp273 if (vvert < r_refdef.fvrecty_adj) in D_SpriteScanRightEdge()
274 vvert = r_refdef.fvrecty_adj; in D_SpriteScanRightEdge()
275 if (vvert > r_refdef.fvrectbottom_adj) in D_SpriteScanRightEdge()
276 vvert = r_refdef.fvrectbottom_adj; in D_SpriteScanRightEdge()
286 if (vnext < r_refdef.fvrecty_adj) in D_SpriteScanRightEdge()
287 vnext = r_refdef.fvrecty_adj; in D_SpriteScanRightEdge()
288 if (vnext > r_refdef.fvrectbottom_adj) in D_SpriteScanRightEdge()
289 vnext = r_refdef.fvrectbottom_adj; in D_SpriteScanRightEdge()
296 if (uvert < r_refdef.fvrectx_adj) in D_SpriteScanRightEdge()
297 uvert = r_refdef.fvrectx_adj; in D_SpriteScanRightEdge()
[all …]
Dgl_rmisc.cpp124 r_refdef.vrect.x = 0; in R_Envmap_f()
125 r_refdef.vrect.y = 0; in R_Envmap_f()
126 r_refdef.vrect.width = 256; in R_Envmap_f()
127 r_refdef.vrect.height = 256; in R_Envmap_f()
129 r_refdef.viewangles[0] = 0; in R_Envmap_f()
130 r_refdef.viewangles[1] = 0; in R_Envmap_f()
131 r_refdef.viewangles[2] = 0; in R_Envmap_f()
137 r_refdef.viewangles[1] = 90; in R_Envmap_f()
143 r_refdef.viewangles[1] = 180; in R_Envmap_f()
149 r_refdef.viewangles[1] = 270; in R_Envmap_f()
[all …]
Dgl_rmain.cpp65 refdef_t r_refdef; variable
936 if (r_refdef.fov_x == 90) in R_SetFrustum()
949 RotatePointAroundVector( frustum[0].normal, vup, vpn, -(90-r_refdef.fov_x / 2 ) ); in R_SetFrustum()
951 RotatePointAroundVector( frustum[1].normal, vup, vpn, 90-r_refdef.fov_x / 2 ); in R_SetFrustum()
953 RotatePointAroundVector( frustum[2].normal, vright, vpn, 90-r_refdef.fov_y / 2 ); in R_SetFrustum()
955 RotatePointAroundVector( frustum[3].normal, vright, vpn, -( 90 - r_refdef.fov_y / 2 ) ); in R_SetFrustum()
988 VectorCopy (r_refdef.vieworg, r_origin); in R_SetupFrame()
990 AngleVectors (r_refdef.viewangles, vpn, vright, vup); in R_SetupFrame()
1178 x = r_refdef.vrect.x * glwidth/vid.width; in R_SetupGL()
1179 x2 = (r_refdef.vrect.x + r_refdef.vrect.width) * glwidth/vid.width; in R_SetupGL()
[all …]
Dd_sky.cpp40 if (r_refdef.vrect.width >= r_refdef.vrect.height) in D_Sky_uv_To_st()
41 temp = (float)r_refdef.vrect.width; in D_Sky_uv_To_st()
43 temp = (float)r_refdef.vrect.height; in D_Sky_uv_To_st()
Dr_aclipa.s50 movl C(r_refdef)+rd_aliasvrectbottom,%eax
166 movl C(r_refdef)+rd_aliasvrect+4,%eax
179 movl C(r_refdef)+rd_aliasvrectright,%eax
211 movl C(r_refdef)+rd_aliasvrect+0,%eax
/external/quake/quake/src/QW/client/
Dr_main.c71 refdef_t r_refdef; variable
232 r_refdef.xOrigin = XCENTERING; in R_Init()
233 r_refdef.yOrigin = YCENTERING; in R_Init()
385 R_SetVrect (pvrect, &r_refdef.vrect, lineadj); in R_ViewChanged()
387 r_refdef.horizontalFieldOfView = 2.0 * tan (r_refdef.fov_x/360*M_PI); in R_ViewChanged()
388 r_refdef.fvrectx = (float)r_refdef.vrect.x; in R_ViewChanged()
389 r_refdef.fvrectx_adj = (float)r_refdef.vrect.x - 0.5; in R_ViewChanged()
390 r_refdef.vrect_x_adj_shift20 = (r_refdef.vrect.x<<20) + (1<<19) - 1; in R_ViewChanged()
391 r_refdef.fvrecty = (float)r_refdef.vrect.y; in R_ViewChanged()
392 r_refdef.fvrecty_adj = (float)r_refdef.vrect.y - 0.5; in R_ViewChanged()
[all …]
Dr_misc.c77 startangle = r_refdef.viewangles[1]; in R_TimeRefresh_f()
82 r_refdef.viewangles[1] = i/128.0*360.0; in R_TimeRefresh_f()
90 vr.x = r_refdef.vrect.x; in R_TimeRefresh_f()
91 vr.y = r_refdef.vrect.y; in R_TimeRefresh_f()
92 vr.width = r_refdef.vrect.width; in R_TimeRefresh_f()
93 vr.height = r_refdef.vrect.height; in R_TimeRefresh_f()
101 r_refdef.viewangles[1] = startangle; in R_TimeRefresh_f()
186 if (r_refdef.vrect.width <= MAX_TIMINGS) in R_TimeGraph()
187 x = r_refdef.vrect.width-1; in R_TimeGraph()
189 x = r_refdef.vrect.width - in R_TimeGraph()
[all …]
Dr_aclip.c84 if (out->v[0] < r_refdef.aliasvrect.x) in R_Alias_clip_z()
86 if (out->v[1] < r_refdef.aliasvrect.y) in R_Alias_clip_z()
88 if (out->v[0] > r_refdef.aliasvrectright) in R_Alias_clip_z()
90 if (out->v[1] > r_refdef.aliasvrectbottom) in R_Alias_clip_z()
104 scale = (float)(r_refdef.aliasvrect.x - pfv0->v[0]) / in R_Alias_clip_left()
111 scale = (float)(r_refdef.aliasvrect.x - pfv1->v[0]) / in R_Alias_clip_left()
127 scale = (float)(r_refdef.aliasvrectright - pfv0->v[0]) / in R_Alias_clip_right()
134 scale = (float)(r_refdef.aliasvrectright - pfv1->v[0]) / in R_Alias_clip_right()
149 scale = (float)(r_refdef.aliasvrect.y - pfv0->v[1]) / in R_Alias_clip_top()
156 scale = (float)(r_refdef.aliasvrect.y - pfv1->v[1]) / in R_Alias_clip_top()
[all …]
Dgl_screen.c316 r_refdef.vrect.width = vid.width * size; in SCR_CalcRefdef()
317 if (r_refdef.vrect.width < 96) in SCR_CalcRefdef()
319 size = 96.0 / r_refdef.vrect.width; in SCR_CalcRefdef()
320 r_refdef.vrect.width = 96; // min for icons in SCR_CalcRefdef()
323 r_refdef.vrect.height = vid.height * size; in SCR_CalcRefdef()
325 if (r_refdef.vrect.height > (int) (vid.height - sb_lines)) in SCR_CalcRefdef()
326 r_refdef.vrect.height = vid.height - sb_lines; in SCR_CalcRefdef()
327 } else if (r_refdef.vrect.height > (int) vid.height) in SCR_CalcRefdef()
328 r_refdef.vrect.height = vid.height; in SCR_CalcRefdef()
329 r_refdef.vrect.x = (vid.width - r_refdef.vrect.width)/2; in SCR_CalcRefdef()
[all …]
Dview.c728 yaw = r_refdef.viewangles[YAW]; in CalcGunAngle()
729 pitch = -r_refdef.viewangles[PITCH]; in CalcGunAngle()
731 yaw = angledelta(yaw - r_refdef.viewangles[YAW]) * 0.4; in CalcGunAngle()
736 pitch = angledelta(-pitch - r_refdef.viewangles[PITCH]) * 0.4; in CalcGunAngle()
767 cl.viewent.angles[YAW] = r_refdef.viewangles[YAW] + yaw; in CalcGunAngle()
768 cl.viewent.angles[PITCH] = - (r_refdef.viewangles[PITCH] + pitch); in CalcGunAngle()
781 if (r_refdef.vieworg[0] < cl.simorg[0] - 14) in V_BoundOffsets()
782 r_refdef.vieworg[0] = cl.simorg[0] - 14; in V_BoundOffsets()
783 else if (r_refdef.vieworg[0] > cl.simorg[0] + 14) in V_BoundOffsets()
784 r_refdef.vieworg[0] = cl.simorg[0] + 14; in V_BoundOffsets()
[all …]
Dd_modech.c75 d_pix_min = r_refdef.vrect.width / 320; in D_ViewChanged()
79 d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5); in D_ViewChanged()
80 d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5); in D_ViewChanged()
89 d_vrectx = r_refdef.vrect.x; in D_ViewChanged()
90 d_vrecty = r_refdef.vrect.y; in D_ViewChanged()
91 d_vrectright_particle = r_refdef.vrectright - d_pix_max; in D_ViewChanged()
93 r_refdef.vrectbottom - (d_pix_max << d_y_aspect_shift); in D_ViewChanged()
Dr_draw.c114 if (u0 < r_refdef.fvrectx_adj) in R_EmitEdge()
115 u0 = r_refdef.fvrectx_adj; in R_EmitEdge()
116 if (u0 > r_refdef.fvrectright_adj) in R_EmitEdge()
117 u0 = r_refdef.fvrectright_adj; in R_EmitEdge()
121 if (v0 < r_refdef.fvrecty_adj) in R_EmitEdge()
122 v0 = r_refdef.fvrecty_adj; in R_EmitEdge()
123 if (v0 > r_refdef.fvrectbottom_adj) in R_EmitEdge()
124 v0 = r_refdef.fvrectbottom_adj; in R_EmitEdge()
142 if (r_u1 < r_refdef.fvrectx_adj) in R_EmitEdge()
143 r_u1 = r_refdef.fvrectx_adj; in R_EmitEdge()
[all …]
Dd_sprite.c273 if (vvert < r_refdef.fvrecty_adj) in D_SpriteScanRightEdge()
274 vvert = r_refdef.fvrecty_adj; in D_SpriteScanRightEdge()
275 if (vvert > r_refdef.fvrectbottom_adj) in D_SpriteScanRightEdge()
276 vvert = r_refdef.fvrectbottom_adj; in D_SpriteScanRightEdge()
286 if (vnext < r_refdef.fvrecty_adj) in D_SpriteScanRightEdge()
287 vnext = r_refdef.fvrecty_adj; in D_SpriteScanRightEdge()
288 if (vnext > r_refdef.fvrectbottom_adj) in D_SpriteScanRightEdge()
289 vnext = r_refdef.fvrectbottom_adj; in D_SpriteScanRightEdge()
296 if (uvert < r_refdef.fvrectx_adj) in D_SpriteScanRightEdge()
297 uvert = r_refdef.fvrectx_adj; in D_SpriteScanRightEdge()
[all …]
Dgl_rmain.c65 refdef_t r_refdef; variable
838 if (r_refdef.fov_x == 90) in R_SetFrustum()
852 RotatePointAroundVector( frustum[0].normal, vup, vpn, -(90-r_refdef.fov_x / 2 ) ); in R_SetFrustum()
854 RotatePointAroundVector( frustum[1].normal, vup, vpn, 90-r_refdef.fov_x / 2 ); in R_SetFrustum()
856 RotatePointAroundVector( frustum[2].normal, vright, vpn, 90-r_refdef.fov_y / 2 ); in R_SetFrustum()
858 RotatePointAroundVector( frustum[3].normal, vright, vpn, -( 90 - r_refdef.fov_y / 2 ) ); in R_SetFrustum()
889 VectorCopy (r_refdef.vieworg, r_origin); in R_SetupFrame()
891 AngleVectors (r_refdef.viewangles, vpn, vright, vup); in R_SetupFrame()
956 x = r_refdef.vrect.x * glwidth/vid.width; in R_SetupGL()
957 x2 = (r_refdef.vrect.x + r_refdef.vrect.width) * glwidth/vid.width; in R_SetupGL()
[all …]
Dgl_rmisc.c117 r_refdef.vrect.x = 0; in R_Envmap_f()
118 r_refdef.vrect.y = 0; in R_Envmap_f()
119 r_refdef.vrect.width = 256; in R_Envmap_f()
120 r_refdef.vrect.height = 256; in R_Envmap_f()
122 r_refdef.viewangles[0] = 0; in R_Envmap_f()
123 r_refdef.viewangles[1] = 0; in R_Envmap_f()
124 r_refdef.viewangles[2] = 0; in R_Envmap_f()
130 r_refdef.viewangles[1] = 90; in R_Envmap_f()
136 r_refdef.viewangles[1] = 180; in R_Envmap_f()
142 r_refdef.viewangles[1] = 270; in R_Envmap_f()
[all …]
Dd_sky.c40 if (r_refdef.vrect.width >= r_refdef.vrect.height) in D_Sky_uv_To_st()
41 temp = (float)r_refdef.vrect.width; in D_Sky_uv_To_st()
43 temp = (float)r_refdef.vrect.height; in D_Sky_uv_To_st()
Dr_aclipa.s50 movl C(r_refdef)+rd_aliasvrectbottom,%eax
166 movl C(r_refdef)+rd_aliasvrect+4,%eax
179 movl C(r_refdef)+rd_aliasvrectright,%eax
211 movl C(r_refdef)+rd_aliasvrect+0,%eax

123