views:

744

answers:

1

Anyone know if/how to setup OpenGL ES for plain old regular Java on Linux without running it through a cell phone emulator?

My goal is to develop tools for building Android games (ex. a map builder). Ideally these would run outside the emulator to take benefit of greater screen real estate, native OS conveniences, fast start time, etc.

On the Java side, there is JSR 239, which is the API specification for OpenGL ES. There also seems to be at least one implementation of the API through these folks: http://phoneme.dev.java.net/

So - things I haven't been able to figure out yet from reading:

1) Do I also need some kind of native implementation of OpenGL ES in addition to the Java API? If so, where do I get that? (as I understand it, the API is just a wrapper, but I may be very confused at this point..)

2) Can I integrate with AWT and/or Swing and stuff the canvas into a window? Or is this necessarily independent?

Tips, links, code, suggestions, whatever you've got! Thanks!

+1  A: 

The Khronos SDK has a PC emulator that works in Linux.

http://www.imgtec.com/PowerVR/insider/sdk/KhronosOpenGLES1xMBX.asp

This might give you a Java binding, it does have some requirements about the compliance of the SDK, and I've not tried the Khronos SDK with it.

http://www.jcp.org/en/jsr/detail?id=239

Chris Blackwell