259 |
true, showFinal); |
true, showFinal); |
260 |
|
|
261 |
} |
} |
262 |
|
|
263 |
|
public int[] readPixels(int x, int y, int w, int h) { |
264 |
|
GL.ByteVector v = GL.createByteVector(w*h*4); |
265 |
|
Dimension d = getSize(); |
266 |
|
v.readFromBuffer_ubytes(window, "FRONT", |
267 |
|
x, d.height-1-y, w, h, |
268 |
|
"BGRA"); |
269 |
|
return v.getInts(); |
270 |
|
} |
271 |
public float timeRender(VobScene vs, int iters) { |
public float timeRender(VobScene vs, int iters) { |
272 |
return ((GLVobCoorder)vs.coords).timeRender(window, (GLVobMap)vs.map, |
return ((GLVobCoorder)vs.coords).timeRender(window, (GLVobMap)vs.map, |
273 |
true, iters); |
true, iters); |