/[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.8 by tjl, Mon Sep 30 22:20:28 2002 UTC revision 1.9 by humppake, Wed Oct 2 11:43:44 2002 UTC
# Line 85  public class GL { Line 85  public class GL {
85      /** See RENDERABLE0.      /** See RENDERABLE0.
86       */       */
87      public static final int RENDERABLE2 = 0x2000000;      public static final int RENDERABLE2 = 0x2000000;
88        /** See RENDERABLE0.
89         */
90        public static final int RENDERABLE3 = 0x3000000;
91    
92      /** The Java proxy for a C++ object.      /** The Java proxy for a C++ object.
93       */       */
# Line 214  public class GL { Line 217  public class GL {
217      }      }
218      static private native void deleteRenderable2(int id);      static private native void deleteRenderable2(int id);
219    
220        /** The Java proxy representing a Renderable2 object.
221         */
222        static public abstract class Renderable3JavaObject extends JavaObject
223            implements gzz.vob.Vob3 {
224            public Renderable3JavaObject(int id) { super(id); }
225            /** Add this object to the given list with the given coordinate
226             * systems.
227             * Usage:
228             * <pre>
229             *      int[] list;
230             *      int curs;
231             *      curs = obj.addToList(list, curs, coordsys1, coordsys2, coordsys3);
232             * </pre>
233             * @param list The display list to add this to.
234             * @param cur The current index, to which the first int goes
235             * @param coordsys1 The number of the first system.
236             * @param coordsys2 The number of the second system.
237             * @param coordsys3 The number of the third system.
238             * @return The new current index after adding these.
239             */
240            public int addToListGL(GraphicsAPI.Window win, int[] list, int cur,
241                                int coordsys1, int coordsys2, int coordsys3) {
242                list[cur++] = (RENDERABLE3 | getId());
243                list[cur++] = coordsys1;
244                list[cur++] = coordsys2;
245                list[cur++] = coordsys3;
246                return cur;
247            }
248            protected void deleteObj() {
249                deleteRenderable3(getId());
250            }
251        }
252        static private native void deleteRenderable3(int id);
253    
254  //--------- Window  //--------- Window
255      /** An on-screen GLX window into which graphics can be drawn.      /** An on-screen GLX window into which graphics can be drawn.
256       */       */
# Line 648  public class GL { Line 685  public class GL {
685    
686    
687  }  }
688    
689    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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