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

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

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

revision 1.6 by tjl, Wed Oct 23 19:50:17 2002 UTC revision 1.7 by tjl, Wed Dec 4 09:47:09 2002 UTC
# Line 25  import java.util.ArrayList; Line 25  import java.util.ArrayList;
25    
26  /** The interface to the paper library.  /** The interface to the paper library.
27   */   */
28  public class Paper {  public class Paper implements GLDeletable {
29      public static boolean dbg = true;      public static boolean dbg = true;
30      private static void p(String s) { if(dbg) System.out.println(s); }      private static void p(String s) { if(dbg) System.out.println(s); }
31      private static void pa(String s) { System.err.println(s); }      private static void pa(String s) { System.err.println(s); }
# Line 75  public class Paper { Line 75  public class Paper {
75      }      }
76    
77      public void finalize() {      public void finalize() {
78            if(c_id != 0) GL.addDeletable(this);
79        }
80        public void deleteObject() {
81          impl_delete(c_id);          impl_delete(c_id);
82            c_id = 0;
83      }      }
84    
85      int getId() { return c_id; }      int getId() { return c_id; }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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