185 |
place(vs, scaled, importance, pixelscale); |
place(vs, scaled, importance, pixelscale); |
186 |
} |
} |
187 |
|
|
188 |
|
/** Make a request for loading the textures into memory. |
189 |
|
*/ |
190 |
|
public void request(float x, float y, float radius, float importance, float pixelscale) { |
191 |
|
pa("Request: "+x+" "+y+" "+radius); |
192 |
|
float curx = 0; |
193 |
|
for(int p = 0; p < npages; p++) { |
194 |
|
float dx = Math.abs((curx + .5f * scale * xywh[4*p+2]) - x) - .5f*scale * xywh[4*p+2]; |
195 |
|
float dy = Math.abs((.5f * scale * xywh[4*p+3]) - y) - .5f*scale * xywh[4*p+3]; |
196 |
|
pa("RequestCoords: "+xywh[4*p+0]+" "+xywh[4*p+1]+" "+ |
197 |
|
xywh[4*p+2]+" "+xywh[4*p+3]); |
198 |
|
if(dx < radius && dy < radius) { |
199 |
|
pa("Request DO: "+dx+" "+dy); |
200 |
|
psps[p].request(importance, pixelscale); |
201 |
|
} |
202 |
|
curx += scale * xywh[4*p + 2]; |
203 |
|
} |
204 |
|
} |
205 |
|
|
206 |
} |
} |
207 |
|
|