300 |
} |
} |
301 |
static private native void deleteRenderable3(int id); |
static private native void deleteRenderable3(int id); |
302 |
|
|
303 |
//--------- Window |
//--------- Renderable surface |
304 |
/** An on-screen GLX window into which graphics can be drawn. |
static public class RenderingSurface extends NonRenderableJavaObject { |
305 |
*/ |
private RenderingSurface(int id) { super(id); } |
|
final static public class Window extends NonRenderableJavaObject { |
|
|
|
|
|
private Window(int id) { super(id); } |
|
|
|
|
306 |
protected void deleteObj() { deleteWindow(getId()); } |
protected void deleteObj() { deleteWindow(getId()); } |
307 |
|
|
|
// XXX ??? |
|
|
public void repaint() { GL.repaintWindow(getId()); } |
|
|
|
|
|
/** Call the EventHandler.timeout(id) with the given id, |
|
|
* after at least ms milliseconds have passed. |
|
|
*/ |
|
|
public void addTimeout(int ms, int id) { |
|
|
addTimeoutWindow(getId(), ms, id); |
|
|
} |
|
|
|
|
308 |
/** Get the current bounds of the window on screen. |
/** Get the current bounds of the window on screen. |
309 |
|
* For off-screen surfaces, only width and height are |
310 |
|
* significant. |
311 |
*/ |
*/ |
312 |
public Rectangle getBounds() { |
public Rectangle getBounds() { |
313 |
Rectangle rect = new Rectangle(); |
Rectangle rect = new Rectangle(); |
321 |
/** Release this window from being the current OpenGL context. |
/** Release this window from being the current OpenGL context. |
322 |
*/ |
*/ |
323 |
public void release() { impl_Window_release(getId()); } |
public void release() { impl_Window_release(getId()); } |
324 |
|
} |
325 |
|
//--------- Window |
326 |
|
/** An on-screen GLX window into which graphics can be drawn. |
327 |
|
*/ |
328 |
|
final static public class Window extends RenderingSurface { |
329 |
|
|
330 |
|
private Window(int id) { super(id); } |
331 |
|
|
332 |
|
// XXX ??? |
333 |
|
public void repaint() { GL.repaintWindow(getId()); } |
334 |
|
|
335 |
|
/** Call the EventHandler.timeout(id) with the given id, |
336 |
|
* after at least ms milliseconds have passed. |
337 |
|
*/ |
338 |
|
public void addTimeout(int ms, int id) { |
339 |
|
addTimeoutWindow(getId(), ms, id); |
340 |
|
} |
341 |
|
|
342 |
/** Move the upper left corner of the window to the given coordinates. |
/** Move the upper left corner of the window to the given coordinates. |
343 |
*/ |
*/ |