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 |
} |
} |
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() { |
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() { |
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; |
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; |
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) { |
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, |
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) { |