erenon
erenon

Reputation: 19118

OpenGL ES on Android and PC

I'd like to develop a 2D game using OpenGL (ES) for self educational purpose only. The primary target architecture is Android, so the programming language will be Java I suppose (however, c/c++ is a valid competitor).

I'm wondering if is there a way to create a cross-platform solution of the OpenGL part of the program. I've checked GLSurfaceView but it seems Android only.

Is there any technique that minimizes the differences between the Android and the PC version? Does it worth the hassle at all? Where to start if it's possible? (If it's not possible, I'll be fine with the good old MVC model with different view and controller layers I guess) I don't like to use any non-standard library like libGDX (which is great) becouse I don't know OpenGL yet, and I'd like to know the basics.

Upvotes: 2

Views: 595

Answers (2)

badlogic
badlogic

Reputation: 3069

libgdx exposes the full OpenGL ES spec to you, both 1.x and 2.0. See GL10, GL11 and GL20. You don't have to use the classes build on top of that like Mesh, Texture etc. Just use it as a thin wrapper around your OS windowing system with OpenGL ES support.

Upvotes: 5

Stas Jaro
Stas Jaro

Reputation: 4885

OpenGL is quite universal and can be ported to various platforms and languages very easily, especially if you are using java. A very good set of tutorials for using OpenGL can be found here http://nehe.gamedev.net/

Upvotes: 2

Related Questions