/[libvob]/libvob/org/nongnu/libvob/gl/GL.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/gl/GL.java

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

revision 1.15 by tjl, Thu May 29 08:00:20 2003 UTC revision 1.16 by tjl, Mon Jun 9 15:04:36 2003 UTC
# Line 800  public class GL { Line 800  public class GL {
800      static private native int impl_ByteVector_shade(int id, int w, int h, int d,      static private native int impl_ByteVector_shade(int id, int w, int h, int d,
801                      int comps, String shaderName, String[] params);                      int comps, String shaderName, String[] params);
802    
803    // -------------------- TexAccum
804        /** An object that can collect information about which sizes
805         * a texture was rendered at.
806         */
807        static public class TexAccum extends NonRenderableJavaObject {
808            private TexAccum(int id) {
809                super(id);
810                if(GL.dbg) pa("Create texaccum "+id+"\n");
811            }
812            protected void deleteObj() {
813                if(GL.dbg) pa("Delete texaccum "+getId()+"\n");
814                impl_TexAccum_delete(getId());
815            }
816            public void clear() {
817                if(GL.dbg) pa("Clear texaccum "+getId()+"\n");
818                impl_TexAccum_clear(getId());
819            }
820            public double get(int mip) {
821                return impl_TexAccum_get(getId(), mip);
822            }
823        }
824        static public TexAccum createTexAccum() {
825            return new TexAccum(impl_TexAccum_create());
826        }
827        static private native int impl_TexAccum_create();
828        static private native void impl_TexAccum_delete(int id);
829        static private native double impl_TexAccum_get(int id, int mip);
830        static private native void impl_TexAccum_clear(int id);
831    
832    
833    
834  //----------Misc  //----------Misc
835    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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