/[gzz]/gzz/gzz/client/gl/GLScreen.java
ViewVC logotype

Diff of /gzz/gzz/client/gl/GLScreen.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by tjl, Mon Oct 14 18:15:19 2002 UTC revision 1.37 by tjl, Wed Oct 16 07:46:39 2002 UTC
# Line 264  public static final String rcsid = "$Id$ Line 264  public static final String rcsid = "$Id$
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,

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26