Lines Matching refs:wx

83 void rt_heightfield(void *tex, vector ctr, int m, int n, apiflt *field, apiflt wx, apiflt wy) {  in rt_heightfield()  argument
88 xoff = ctr.x - (wx / 2.0); in rt_heightfield()
94 v0.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
98 v1.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
102 v2.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
108 v0.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
112 v1.x = wx * (xx) / (m * 1.0) + xoff; in rt_heightfield()
116 v2.x = wx * (xx + 1) / (m * 1.0) + xoff; in rt_heightfield()
126 rt_sheightfield(void *tex, vector ctr, int m, int n, apiflt *field, apiflt wx, apiflt wy) { in rt_sheightfield() argument
136 offset.x = ctr.x - (wx / 2.0); in rt_sheightfield()
140 xinc = wx / ((apiflt)m); in rt_sheightfield()
200 apiflt wx, in adjust() argument
211 d = (abs(xa - xb) / (xres * 1.0)) * wx + (abs(ya - yb) / (yres * 1.0)) * wy; in adjust()
225 subdivide(apiflt *base, int xres, int yres, apiflt wx, apiflt wy, int x1, int y1, int x2, int y2) { in subdivide() argument
235 adjust(base, xres, yres, wx, wy, x1, y1, x, y1, x2, y1); in subdivide()
236 adjust(base, xres, yres, wx, wy, x2, y1, x2, y, x2, y2); in subdivide()
237 adjust(base, xres, yres, wx, wy, x1, y2, x, y2, x2, y2); in subdivide()
238 adjust(base, xres, yres, wx, wy, x1, y1, x1, y, x1, y2); in subdivide()
246 subdivide(base, xres, yres, wx, wy, x1, y1, x, y); in subdivide()
247 subdivide(base, xres, yres, wx, wy, x, y1, x2, y); in subdivide()
248 subdivide(base, xres, yres, wx, wy, x, y, x2, y2); in subdivide()
249 subdivide(base, xres, yres, wx, wy, x1, y, x, y2); in subdivide()
252 void rt_landscape(void *tex, int m, int n, vector ctr, apiflt wx, apiflt wy) { in rt_landscape() argument
273 subdivide(field, m, n, wx, wy, 0, 0, m - 1, n - 1); in rt_landscape()
275 rt_sheightfield(tex, ctr, m, n, field, wx, wy); in rt_landscape()