264 |
GL.ByteVector v = GL.createByteVector(w*h*4); |
GL.ByteVector v = GL.createByteVector(w*h*4); |
265 |
Dimension d = getSize(); |
Dimension d = getSize(); |
266 |
v.readFromBuffer_ubytes(window, "FRONT", |
v.readFromBuffer_ubytes(window, "FRONT", |
267 |
x, d.height-1-y, w, h, |
x, d.height-y-h, w, h, |
268 |
"BGRA"); |
"BGRA"); |
269 |
return v.getInts(); |
int[] res = v.getInts(); |
270 |
|
// Exchange to get it right way up |
271 |
|
for(int row = 0; row < h/2; row++) { |
272 |
|
for(int col = 0; col < w; col++) { |
273 |
|
int tmp = res[row*w + col]; |
274 |
|
res[row*w + col] = res[(h-1-row)*w + col]; |
275 |
|
res[(h-1-row)*w + col] = tmp; |
276 |
|
} |
277 |
|
} |
278 |
|
return res; |
279 |
} |
} |
280 |
public float timeRender(VobScene vs, int iters) { |
public float timeRender(VobScene vs, int iters) { |
281 |
return ((GLVobCoorder)vs.coords).timeRender(window, (GLVobMap)vs.map, |
return ((GLVobCoorder)vs.coords).timeRender(window, (GLVobMap)vs.map, |