HomeSort by relevance Sort by last modified time
    Searched refs:r_refdef (Results 1 - 25 of 54) sorted by null

1 2 3

  /external/quake/quake/src/QW/client/
d_modech.c 75 d_pix_min = r_refdef.vrect.width / 320;
79 d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5);
80 d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
89 d_vrectx = r_refdef.vrect.x;
90 d_vrecty = r_refdef.vrect.y;
91 d_vrectright_particle = r_refdef.vrectright - d_pix_max;
93 r_refdef.vrectbottom - (d_pix_max << d_y_aspect_shift);
r_main.c 71 refdef_t r_refdef; variable
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
    [all...]
r_misc.c 77 startangle = r_refdef.viewangles[1];
82 r_refdef.viewangles[1] = i/128.0*360.0;
90 vr.x = r_refdef.vrect.x;
91 vr.y = r_refdef.vrect.y;
92 vr.width = r_refdef.vrect.width;
93 vr.height = r_refdef.vrect.height;
101 r_refdef.viewangles[1] = startangle;
120 // x += r_refdef.vrect.x;
121 // y += r_refdef.vrect.y;
175 //a = (int)((r_refdef.vieworg[2] + 1024)/1)%(int)r_graphheight.value
    [all...]
r_aclip.c 84 if (out->v[0] < r_refdef.aliasvrect.x)
86 if (out->v[1] < r_refdef.aliasvrect.y)
88 if (out->v[0] > r_refdef.aliasvrectright)
90 if (out->v[1] > r_refdef.aliasvrectbottom)
104 scale = (float)(r_refdef.aliasvrect.x - pfv0->v[0]) /
111 scale = (float)(r_refdef.aliasvrect.x - pfv1->v[0]) /
127 scale = (float)(r_refdef.aliasvrectright - pfv0->v[0]) /
134 scale = (float)(r_refdef.aliasvrectright - pfv1->v[0]) /
149 scale = (float)(r_refdef.aliasvrect.y - pfv0->v[1]) /
156 scale = (float)(r_refdef.aliasvrect.y - pfv1->v[1])
    [all...]
d_sprite.c 273 if (vvert < r_refdef.fvrecty_adj)
274 vvert = r_refdef.fvrecty_adj;
275 if (vvert > r_refdef.fvrectbottom_adj)
276 vvert = r_refdef.fvrectbottom_adj;
286 if (vnext < r_refdef.fvrecty_adj)
287 vnext = r_refdef.fvrecty_adj;
288 if (vnext > r_refdef.fvrectbottom_adj)
289 vnext = r_refdef.fvrectbottom_adj;
296 if (uvert < r_refdef.fvrectx_adj)
297 uvert = r_refdef.fvrectx_adj
    [all...]
r_draw.c 114 if (u0 < r_refdef.fvrectx_adj)
115 u0 = r_refdef.fvrectx_adj;
116 if (u0 > r_refdef.fvrectright_adj)
117 u0 = r_refdef.fvrectright_adj;
121 if (v0 < r_refdef.fvrecty_adj)
122 v0 = r_refdef.fvrecty_adj;
123 if (v0 > r_refdef.fvrectbottom_adj)
124 v0 = r_refdef.fvrectbottom_adj;
142 if (r_u1 < r_refdef.fvrectx_adj)
143 r_u1 = r_refdef.fvrectx_adj
    [all...]
view.c 728 yaw = r_refdef.viewangles[YAW];
729 pitch = -r_refdef.viewangles[PITCH];
731 yaw = angledelta(yaw - r_refdef.viewangles[YAW]) * 0.4;
736 pitch = angledelta(-pitch - r_refdef.viewangles[PITCH]) * 0.4;
767 cl.viewent.angles[YAW] = r_refdef.viewangles[YAW] + yaw;
768 cl.viewent.angles[PITCH] = - (r_refdef.viewangles[PITCH] + pitch);
781 if (r_refdef.vieworg[0] < cl.simorg[0] - 14)
782 r_refdef.vieworg[0] = cl.simorg[0] - 14;
783 else if (r_refdef.vieworg[0] > cl.simorg[0] + 14)
784 r_refdef.vieworg[0] = cl.simorg[0] + 14
    [all...]
gl_screen.c 316 r_refdef.vrect.width = vid.width * size;
317 if (r_refdef.vrect.width < 96)
319 size = 96.0 / r_refdef.vrect.width;
320 r_refdef.vrect.width = 96; // min for icons
323 r_refdef.vrect.height = vid.height * size;
325 if (r_refdef.vrect.height > (int) (vid.height - sb_lines))
326 r_refdef.vrect.height = vid.height - sb_lines;
327 } else if (r_refdef.vrect.height > (int) vid.height)
328 r_refdef.vrect.height = vid.height;
329 r_refdef.vrect.x = (vid.width - r_refdef.vrect.width)/2
    [all...]
d_sky.c 40 if (r_refdef.vrect.width >= r_refdef.vrect.height)
41 temp = (float)r_refdef.vrect.width;
43 temp = (float)r_refdef.vrect.height;
gl_rmisc.c 117 r_refdef.vrect.x = 0;
118 r_refdef.vrect.y = 0;
119 r_refdef.vrect.width = 256;
120 r_refdef.vrect.height = 256;
122 r_refdef.viewangles[0] = 0;
123 r_refdef.viewangles[1] = 0;
124 r_refdef.viewangles[2] = 0;
130 r_refdef.viewangles[1] = 90;
136 r_refdef.viewangles[1] = 180;
142 r_refdef.viewangles[1] = 270
    [all...]
gl_rmain.c 65 refdef_t r_refdef; variable
838 if (r_refdef.fov_x == 90)
852 RotatePointAroundVector( frustum[0].normal, vup, vpn, -(90-r_refdef.fov_x / 2 ) );
854 RotatePointAroundVector( frustum[1].normal, vup, vpn, 90-r_refdef.fov_x / 2 );
856 RotatePointAroundVector( frustum[2].normal, vright, vpn, 90-r_refdef.fov_y / 2 );
858 RotatePointAroundVector( frustum[3].normal, vright, vpn, -( 90 - r_refdef.fov_y / 2 ) );
889 VectorCopy (r_refdef.vieworg, r_origin);
891 AngleVectors (r_refdef.viewangles, vpn, vright, vup);
956 x = r_refdef.vrect.x * glwidth/vid.width;
957 x2 = (r_refdef.vrect.x + r_refdef.vrect.width) * glwidth/vid.width
    [all...]
r_aclipa.s 50 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/WinQuake/
chase.cpp 73 chase_dest[i] = r_refdef.vieworg[i]
76 chase_dest[2] = r_refdef.vieworg[2] + chase_up.value;
79 VectorMA (r_refdef.vieworg, 4096, forward, dest);
80 TraceLine (r_refdef.vieworg, dest, stop);
83 VectorSubtract (stop, r_refdef.vieworg, stop);
87 r_refdef.viewangles[PITCH] = -atan(stop[2] / dist) / M_PI * 180;
90 VectorCopy (chase_dest, r_refdef.vieworg);
d_modech.cpp 75 d_pix_min = r_refdef.vrect.width / 320;
79 d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5);
80 d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
89 d_vrectx = r_refdef.vrect.x;
90 d_vrecty = r_refdef.vrect.y;
91 d_vrectright_particle = r_refdef.vrectright - d_pix_max;
93 r_refdef.vrectbottom - (d_pix_max << d_y_aspect_shift);
gl_screen.cpp 311 r_refdef.vrect.width = (int) (vid.width * size);
312 if (r_refdef.vrect.width < 96)
314 size = 96.0 / r_refdef.vrect.width;
315 r_refdef.vrect.width = 96; // min for icons
318 r_refdef.vrect.height = (int)(vid.height * size);
319 if ((int)(r_refdef.vrect.height) > (int)(vid.height - sb_lines))
320 r_refdef.vrect.height = vid.height - sb_lines;
321 if ((int)(r_refdef.vrect.height) > (int)(vid.height))
322 r_refdef.vrect.height = vid.height;
323 r_refdef.vrect.x = (vid.width - r_refdef.vrect.width)/2
    [all...]
r_misc.cpp 76 startangle = r_refdef.viewangles[1];
81 r_refdef.viewangles[1] = i/128.0*360.0;
89 vr.x = r_refdef.vrect.x;
90 vr.y = r_refdef.vrect.y;
91 vr.width = r_refdef.vrect.width;
92 vr.height = r_refdef.vrect.height;
100 r_refdef.viewangles[1] = startangle;
119 x += r_refdef.vrect.x;
120 y += r_refdef.vrect.y;
162 //a = (int)((r_refdef.vieworg[2] + 1024)/1)%(int)r_graphheight.value;
    [all...]
r_main.cpp 69 refdef_t r_refdef; variable
227 r_refdef.xOrigin = XCENTERING;
228 r_refdef.yOrigin = YCENTERING;
354 Called every time the vid structure or r_refdef changes.
365 R_SetVrect (pvrect, &r_refdef.vrect, lineadj);
367 r_refdef.horizontalFieldOfView = 2.0 * tan (r_refdef.fov_x/360*M_PI);
368 r_refdef.fvrectx = (float)r_refdef.vrect.x;
369 r_refdef.fvrectx_adj = (float)r_refdef.vrect.x - 0.5;
    [all...]
r_aclip.cpp 84 if (out->v[0] < r_refdef.aliasvrect.x)
86 if (out->v[1] < r_refdef.aliasvrect.y)
88 if (out->v[0] > r_refdef.aliasvrectright)
90 if (out->v[1] > r_refdef.aliasvrectbottom)
104 scale = (float)(r_refdef.aliasvrect.x - pfv0->v[0]) /
111 scale = (float)(r_refdef.aliasvrect.x - pfv1->v[0]) /
127 scale = (float)(r_refdef.aliasvrectright - pfv0->v[0]) /
134 scale = (float)(r_refdef.aliasvrectright - pfv1->v[0]) /
149 scale = (float)(r_refdef.aliasvrect.y - pfv0->v[1]) /
156 scale = (float)(r_refdef.aliasvrect.y - pfv1->v[1]) /
    [all...]
d_sprite.cpp 273 if (vvert < r_refdef.fvrecty_adj)
274 vvert = r_refdef.fvrecty_adj;
275 if (vvert > r_refdef.fvrectbottom_adj)
276 vvert = r_refdef.fvrectbottom_adj;
286 if (vnext < r_refdef.fvrecty_adj)
287 vnext = r_refdef.fvrecty_adj;
288 if (vnext > r_refdef.fvrectbottom_adj)
289 vnext = r_refdef.fvrectbottom_adj;
296 if (uvert < r_refdef.fvrectx_adj)
297 uvert = r_refdef.fvrectx_adj;
    [all...]
r_draw.cpp 114 if (u0 < r_refdef.fvrectx_adj)
115 u0 = r_refdef.fvrectx_adj;
116 if (u0 > r_refdef.fvrectright_adj)
117 u0 = r_refdef.fvrectright_adj;
121 if (v0 < r_refdef.fvrecty_adj)
122 v0 = r_refdef.fvrecty_adj;
123 if (v0 > r_refdef.fvrectbottom_adj)
124 v0 = r_refdef.fvrectbottom_adj;
142 if (r_u1 < r_refdef.fvrectx_adj)
143 r_u1 = r_refdef.fvrectx_adj;
    [all...]
view.cpp 711 yaw = r_refdef.viewangles[YAW];
712 pitch = -r_refdef.viewangles[PITCH];
714 yaw = angledelta(yaw - r_refdef.viewangles[YAW]) * 0.4;
719 pitch = angledelta(-pitch - r_refdef.viewangles[PITCH]) * 0.4;
750 cl.viewent.angles[YAW] = r_refdef.viewangles[YAW] + yaw;
751 cl.viewent.angles[PITCH] = - (r_refdef.viewangles[PITCH] + pitch);
772 if (r_refdef.vieworg[0] < ent->origin[0] - 14)
773 r_refdef.vieworg[0] = ent->origin[0] - 14;
774 else if (r_refdef.vieworg[0] > ent->origin[0] + 14)
775 r_refdef.vieworg[0] = ent->origin[0] + 14
    [all...]
d_sky.cpp 40 if (r_refdef.vrect.width >= r_refdef.vrect.height)
41 temp = (float)r_refdef.vrect.width;
43 temp = (float)r_refdef.vrect.height;
gl_rmisc.cpp 124 r_refdef.vrect.x = 0;
125 r_refdef.vrect.y = 0;
126 r_refdef.vrect.width = 256;
127 r_refdef.vrect.height = 256;
129 r_refdef.viewangles[0] = 0;
130 r_refdef.viewangles[1] = 0;
131 r_refdef.viewangles[2] = 0;
137 r_refdef.viewangles[1] = 90;
143 r_refdef.viewangles[1] = 180;
149 r_refdef.viewangles[1] = 270
    [all...]
gl_rmain.cpp 65 refdef_t r_refdef; variable
936 if (r_refdef.fov_x == 90)
949 RotatePointAroundVector( frustum[0].normal, vup, vpn, -(90-r_refdef.fov_x / 2 ) );
951 RotatePointAroundVector( frustum[1].normal, vup, vpn, 90-r_refdef.fov_x / 2 );
953 RotatePointAroundVector( frustum[2].normal, vright, vpn, 90-r_refdef.fov_y / 2 );
955 RotatePointAroundVector( frustum[3].normal, vright, vpn, -( 90 - r_refdef.fov_y / 2 ) );
988 VectorCopy (r_refdef.vieworg, r_origin);
990 AngleVectors (r_refdef.viewangles, vpn, vright, vup);
1178 x = r_refdef.vrect.x * glwidth/vid.width;
1179 x2 = (r_refdef.vrect.x + r_refdef.vrect.width) * glwidth/vid.width
    [all...]
r_aclipa.s 50 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

Completed in 1212 milliseconds

1 2 3