/[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.37 by tjl, Wed Jan 15 14:14:45 2003 UTC revision 1.38 by tjl, Thu Jan 16 11:24:36 2003 UTC
# Line 411  public class GL { Line 411  public class GL {
411                  shaderName, params, false);                  shaderName, params, false);
412          }          }
413    
414            /** Call glGetCompressedTexImage.
415             */
416            public byte[] getCompressedTexImage(int lod) {
417                return impl_Texture_getCompressedTexImage(getId(), lod);
418            }
419    
420            /** Call glCompressedTexImage.
421             * The length of data is used so it needs to be right.
422             */
423            public void compressedTexImage(int level, String internalFormat, int width, int height,
424                            int border, byte[] data) {
425                impl_Texture_compressedTexImage(getId(), level, internalFormat, width, height,
426                            border, data);
427            }
428    
429          /** Call libtexture to create the image for each mipmap level separately.          /** Call libtexture to create the image for each mipmap level separately.
430           */           */
431          public int shade_all_levels(int w, int h, int d, int comps,          public int shade_all_levels(int w, int h, int d, int comps,
# Line 460  public class GL { Line 475  public class GL {
475                          level, internalFormat, x, y, w, h,                          level, internalFormat, x, y, w, h,
476                          border);                          border);
477          }          }
478            public float[] getParameter(String name) {
479                return getGLTexParameterFloat("TEXTURE_2D", getId(), name);
480            }
481            public float[] getLevelParameter(int level, String name) {
482                return getGLTexLevelParameterFloat("TEXTURE_2D", getId(), level, name);
483            }
484    
485      }      }
486    
# Line 487  public class GL { Line 508  public class GL {
508                      String target, int level,                      String target, int level,
509                      String internalFormat, int x, int y,                      String internalFormat, int x, int y,
510                      int w, int h, int border) ;                      int w, int h, int border) ;
511        static private native byte[] impl_Texture_getCompressedTexImage(int id, int lod);
512        static private native void impl_Texture_compressedTexImage(int id, int level, String internalFormat,
513                        int width, int height, int border, byte[] data);
514    
515  //--------- OpenGL Program  //--------- OpenGL Program
516      /** An OpenGL program object.      /** An OpenGL program object.
# Line 693  public class GL { Line 717  public class GL {
717              return impl_ByteVector_shade(getId(), w, h, d, comps, shaderName, params);              return impl_ByteVector_shade(getId(), w, h, d, comps, shaderName, params);
718          }          }
719    
720    
721      }      }
722      /** Create a new bytevector of size 0.      /** Create a new bytevector of size 0.
723       */       */

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

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