1340 |
getWindowSize(getId(), rect); |
getWindowSize(getId(), rect); |
1341 |
return rect; |
return rect; |
1342 |
} |
} |
1343 |
|
|
1344 |
|
public void setCurrent() { impl_Window_setCurrent(getId()); } |
1345 |
|
public void release() { impl_Window_release(getId()); } |
1346 |
|
|
1347 |
|
public void move(int x, int y) { impl_Window_move(getId(), x, y); } |
1348 |
|
public void resize(int w, int h) { impl_Window_resize(getId(), w, h); } |
1349 |
} |
} |
1350 |
final private static Window defaultWindow = new Window(-1); |
final private static Window defaultWindow = new Window(-1); |
1351 |
|
|
1361 |
|
|
1362 |
static private native void addTimeoutWindow(int id, int ms, int tid); |
static private native void addTimeoutWindow(int id, int ms, int tid); |
1363 |
|
|
1364 |
|
static private native void impl_Window_setCurrent(int id); |
1365 |
|
static private native void impl_Window_release(int id); |
1366 |
|
static private native void impl_Window_move(int id, int x, int y); |
1367 |
|
static private native void impl_Window_resize(int id, int w, int h); |
1368 |
|
|
1369 |
//--------- Image |
//--------- Image |
1370 |
static public class Image extends NonRenderableJavaObject { |
static public class Image extends NonRenderableJavaObject { |
1449 |
public void loadSubImage(int level, Image img, int xoffs, int yoffs) { |
public void loadSubImage(int level, Image img, int xoffs, int yoffs) { |
1450 |
impl_Texture_loadSubImage(getId(), level, img.getId(), xoffs, yoffs); |
impl_Texture_loadSubImage(getId(), level, img.getId(), xoffs, yoffs); |
1451 |
} |
} |
1452 |
|
public void downsampleInto(Texture into, String target, int level, String internalFormat, String transferformat) { |
1453 |
|
impl_Texture_downsampleInto(getId(), into.getId(), target, level, |
1454 |
|
internalFormat, transferformat); |
1455 |
|
} |
1456 |
} |
} |
1457 |
static public Texture createTexture() { |
static public Texture createTexture() { |
1458 |
return new Texture(impl_createTexture()); |
return new Texture(impl_createTexture()); |
1468 |
int border, String format, String type) ; |
int border, String format, String type) ; |
1469 |
static private native void impl_Texture_loadSubImage(int id, |
static private native void impl_Texture_loadSubImage(int id, |
1470 |
int level, int imgid, int xoffs, int yoffs) ; |
int level, int imgid, int xoffs, int yoffs) ; |
1471 |
|
static private native void impl_Texture_downsampleInto(int id, int intoid, String target, |
1472 |
|
int level, String internalFormat, String transferformat); |
1473 |
|
|
1474 |
//--------- VertexProgramNV |
//--------- VertexProgramNV |
1475 |
/** A vertex program object. |
/** A vertex program object. |
1647 |
*/ |
*/ |
1648 |
public static native void eventLoop(boolean wait); |
public static native void eventLoop(boolean wait); |
1649 |
|
|
|
public static native void startContext(); |
|
|
public static native void endContext(); |
|
|
|
|
1650 |
public static gzz.vob.Vob createCallList(String s) { |
public static gzz.vob.Vob createCallList(String s) { |
1651 |
return createCallList(createDisplayList(s)); |
return createCallList(createDisplayList(s)); |
1652 |
} |
} |