/[gzz]/gzz/gzz/gfx/gl/GL.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/GL.java

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

revision 1.20 by jvk, Sat Nov 2 14:51:36 2002 UTC revision 1.21 by tjl, Sat Nov 9 20:19:26 2002 UTC
# Line 664  public class GL { Line 664  public class GL {
664           * @param h The height to read           * @param h The height to read
665           * @param format The format which to store in the vector,           * @param format The format which to store in the vector,
666           *              e.g. "RGB", "RGBA"           *              e.g. "RGB", "RGBA"
667             * @param type The type to read to, e.g. "FLOAT" or "UNSIGNED_BYTE"
668           */           */
669          public void readFromBuffer_ubytes(Window win,          public void readFromBuffer(Window win,
670              String buffer,              String buffer,
671              int x, int y, int width, int height,              int x, int y, int width, int height,
672              String format) {              String format, String type) {
673              impl_ByteVector_readFromBuffer_ubytes(getId(), win.getId(),              impl_ByteVector_readFromBuffer(getId(), win.getId(),
674                  buffer, x, y, width, height, format);                  buffer, x, y, width, height, format, type);
675            }
676    
677            /**
678             * @param x,y The coordinates to set raster position to.
679             *              This is a bit kludgy...
680             */
681            public void drawPixels(Window win,
682                    int x, int y, float z, int width, int height,
683                    String format, String type) {
684                impl_ByteVector_drawPixels(getId(), win.getId(),
685                        x, y, z, width, height, format, type);
686          }          }
687    
688          /** Get the values from the vector as an array of bytes.          /** Get the values from the vector as an array of bytes.
# Line 701  public class GL { Line 713  public class GL {
713      static private native int createByteVectorImpl(int size);      static private native int createByteVectorImpl(int size);
714      static private native void deleteByteVector(int id);      static private native void deleteByteVector(int id);
715    
716      static private native void impl_ByteVector_readFromBuffer_ubytes(      static private native void impl_ByteVector_readFromBuffer(
717              int id, int winid, String buffer,              int id, int winid, String buffer,
718              int x, int y, int width, int height,              int x, int y, int width, int height,
719              String format) ;              String format, String type) ;
720        static private native void impl_ByteVector_drawPixels(
721                int id, int winid,
722                int x, int y, float z, int width, int height,
723                String format, String type) ;
724      static private native int impl_ByteVector_get(int id, int ind);      static private native int impl_ByteVector_get(int id, int ind);
725      static private native byte[] impl_ByteVector_get(int id);      static private native byte[] impl_ByteVector_get(int id);
726      static private native int[] impl_ByteVector_getInts(int id);      static private native int[] impl_ByteVector_getInts(int id);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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