/[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.27 by tjl, Thu Dec 5 09:29:43 2002 UTC revision 1.28 by tjl, Thu Dec 5 10:57:34 2002 UTC
# Line 170  public class GL { Line 170  public class GL {
170       */       */
171      static public abstract class NonRenderableJavaObject extends JavaObject {      static public abstract class NonRenderableJavaObject extends JavaObject {
172          NonRenderableJavaObject(int id) { super(id); }          NonRenderableJavaObject(int id) { super(id); }
173          public int addToListGL(GraphicsAPI.Window win, int[] list, int cur, int cs1, int cs2) {          public int addToListGL(GraphicsAPI.RenderingSurface win, int[] list, int cur, int cs1, int cs2) {
174              throw new Error("Not right to try to add me to a display list");              throw new Error("Not right to try to add me to a display list");
175          }          }
176      }      }
# Line 195  public class GL { Line 195  public class GL {
195              list[cur++] = (RENDERABLE0 | getId());              list[cur++] = (RENDERABLE0 | getId());
196              return cur;              return cur;
197          }          }
198          public int addToListGL(GraphicsAPI.Window win, int[] list, int cur, int cs1, int cs2) {          public int addToListGL(GraphicsAPI.RenderingSurface win, int[] list, int cur, int cs1, int cs2) {
199              return addToList(list, cur);              return addToList(list, cur);
200          }          }
201          protected void deleteObj() {          protected void deleteObj() {
# Line 226  public class GL { Line 226  public class GL {
226              list[cur++] = coordsys;              list[cur++] = coordsys;
227              return cur;              return cur;
228          }          }
229          public int addToListGL(GraphicsAPI.Window win, int[] list, int cur, int cs1, int cs2) {          public int addToListGL(GraphicsAPI.RenderingSurface win, int[] list, int cur, int cs1, int cs2) {
230              return addToList(list, cur, cs1);              return addToList(list, cur, cs1);
231          }          }
232          protected void deleteObj() {          protected void deleteObj() {
# Line 253  public class GL { Line 253  public class GL {
253           * @param coordsys2 The number of the second system.           * @param coordsys2 The number of the second system.
254           * @return The new current index after adding these.           * @return The new current index after adding these.
255           */           */
256          public int addToListGL(GraphicsAPI.Window win, int[] list, int cur,          public int addToListGL(GraphicsAPI.RenderingSurface win, int[] list, int cur,
257                              int coordsys1, int coordsys2) {                              int coordsys1, int coordsys2) {
258              list[cur++] = (RENDERABLE2 | getId());              list[cur++] = (RENDERABLE2 | getId());
259              list[cur++] = coordsys1;              list[cur++] = coordsys1;
# Line 286  public class GL { Line 286  public class GL {
286           * @param coordsys3 The number of the third system.           * @param coordsys3 The number of the third system.
287           * @return The new current index after adding these.           * @return The new current index after adding these.
288           */           */
289          public int addToListGL(GraphicsAPI.Window win, int[] list, int cur,          public int addToListGL(GraphicsAPI.RenderingSurface win, int[] list, int cur,
290                              int coordsys1, int coordsys2, int coordsys3) {                              int coordsys1, int coordsys2, int coordsys3) {
291              list[cur++] = (RENDERABLE3 | getId());              list[cur++] = (RENDERABLE3 | getId());
292              list[cur++] = coordsys1;              list[cur++] = coordsys1;
# Line 717  public class GL { Line 717  public class GL {
717           *              e.g. "RGB", "RGBA"           *              e.g. "RGB", "RGBA"
718           * @param type The type to read to, e.g. "FLOAT" or "UNSIGNED_BYTE"           * @param type The type to read to, e.g. "FLOAT" or "UNSIGNED_BYTE"
719           */           */
720          public void readFromBuffer(Window win,          public void readFromBuffer(RenderingSurface win,
721              String buffer,              String buffer,
722              int x, int y, int width, int height,              int x, int y, int width, int height,
723              String format, String type) {              String format, String type) {
# Line 794  public class GL { Line 794  public class GL {
794      }      }
795    
796      public static void render(      public static void render(
797                  Window win,                  RenderingSurface win,
798                  int ninds, int[] inds1, float[] pts1,                  int ninds, int[] inds1, float[] pts1,
799                      int[] interpinds,                      int[] interpinds,
800                      int[] inds2, float[] pts2,                      int[] inds2, float[] pts2,
# Line 814  public class GL { Line 814  public class GL {
814                  boolean showFinal);                  boolean showFinal);
815    
816      public static float timeRender(      public static float timeRender(
817                      Window win, int iters,                      RenderingSurface win, int iters,
818                      int ninds, int[] inds1, float[] pts1,                      int ninds, int[] inds1, float[] pts1,
819                      int[] codes,                      int[] codes,
820                      boolean standardcoords) {                      boolean standardcoords) {

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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