Using OpenGL ES on Android and iOS at the same time?

We want to create a mobile game for Android and iOS. But we don't want to code it for iOS and Android seperatly via native codes. Is there any way to code it with something like OpenGL library separate from iOS SDK and Android SDK? If it is, is there any tutorial? I couldn't find.

Upvotes: 0

Views: 182

Answers (5)

Graham Asher
Graham Asher

Reputation: 1780

My commercial product, which is not a game, but is very graphics intensive and uses three-dimensional techniques, uses OpenGL ES 2.0 and runs identically on Android, iOS, Windows, Linux and Mac OS.

The core code is written in C++. On iOS I use the free MetalAngle library to get around the fact that soon Apple will no longer support Open GL.

Upvotes: 0

Xyzk
Xyzk

Reputation: 1332

It's not as simple as that. The easiest solution is to use special framework, like libgdx http://libgdx.badlogicgames.com/ (I'm nost saying it's the best choice, I have used it in the past and it worked fine however), unity or gamemaker

Upvotes: 1

Pieter
Pieter

Reputation: 201

Maybe you could use a game-engine that deploys on multiple platforms. For example: http://unity3d.com/unity

Upvotes: 0

Paul Beusterien
Paul Beusterien

Reputation: 29547

SpriteBuilder is a development kit for creating 2D games in Objective-C. You can develop the app once and deploy to iOS with Xcode and to Android with Apportable.

Tutorials are available here.

Upvotes: 3

Nathua
Nathua

Reputation: 8826

There are actually libraries for that purpose such libGDX

Upvotes: 1

Related Questions