Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi support (and others ARM devices too) #20

Open
dyorgio opened this issue May 15, 2013 · 6 comments
Open

Raspberry Pi support (and others ARM devices too) #20

dyorgio opened this issue May 15, 2013 · 6 comments

Comments

@dyorgio
Copy link

dyorgio commented May 15, 2013

Hi,
I added support to openGL 2.0 ES on PlayN \o/
To do that I added 2 new files on java package (JavaGLES20 and JavaGLESContext).
I changed JavaImage(just a cast) and JavaGraphics (support to choose between normal and ES version) too.

Have you interest to get it on you project? I can send files to you :)

The big problem is get LWJGL ES version (because it is not on maven, you need to compile it by you self).

@samskivert
Copy link
Member

I'm not sure what you mean. PlayN already uses OpenGL ES/2.0 for Java.

@dyorgio
Copy link
Author

dyorgio commented May 15, 2013

???
Do you mean Android? For Java only lwjgl.opengl package is used...no lwjgl.opengles.
Theses changes allow arm devices with linux running PlayN.

@samskivert
Copy link
Member

Oh, I think I'm misremembering. I think I did some work to use LWJGL's OpenGL ES but then dropped it because they never shipped a GLES2 jar.

If we can't get a jar for GLES2 from Maven, I'm not inclined to integrate it into the core PlayN, because it will become a maintenance headache. But if you have a fork of PlayN that has the changes applied, I'll definitely take a look at it.

@dyorgio
Copy link
Author

dyorgio commented May 15, 2013

Ok, I will create this fork, basically it is GL's classes of android version, pointing to LWJGL's OpenGL ES API.

@aduros
Copy link
Contributor

aduros commented May 16, 2013

I don't suppose there's a way to somehow combine JavaGL20 and JavaGLES20? There are still a few Buffer limit() related bugs in JavaGL20, maintaining both would be a bit of a pain.

I can't think of a way to do this without writing a code generator though.

@dyorgio
Copy link
Author

dyorgio commented May 16, 2013

In my point of view no, is a common mistake guess that openGL ES is branch/superset of normal openGL, but is very different, maybe a best version is clone entire package and rename for something like 'playn.javaes' so this new package can focus on ARM devices capabilities/restrictions (like less memory, openGL ES gpu).

anyway the code is committed on git :), now everybody can use it to dev nice games for raspberry pi/ panda board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants