OpenGL option?

Monkey Targets Forums/Android/OpenGL option?

therevills(Posted 2011) [#1]
Any chance in the future that we could use OpenGL instead of Canvas for Android?


Canardian(Posted 2011) [#2]
I think it should be possible to write a mojo clone by replacing some graphics functions, which uses the Android NDK 5 instead of Java, and then make a new target for Monkey like ANDROIDCPP.

I will play around with the raw Android NDK 5, and see what is needed to compile programs. Once that works, it can be Monkeynized.


FlameDuck(Posted 2011) [#3]
Or you could simply write a new mojo implementation using the GLSurfaceView.


therevills(Posted 2011) [#4]

However, everyone should be relieved to hear there is an opengl driver coming soon, and that if should be a LOT faster.


:)

http://www.monkeycoder.co.nz/Community/post.php?topic=270&post=2493


BigAnd(Posted 2011) [#5]
Mark has already mentioned that there is going to be an openGL driver in the "Performance? Tips?" thread.

EDIT: Damn, too slow! :)


matt(Posted 2011) [#6]
This is in V32


therevills(Posted 2011) [#7]
And its a lot quicker :)

Mark has included a sample called bouncyaliens, I can display around 50 aliens, touch the screen and still get over 30FPS.

With 25 sprites and touching the screen I get around 50FPS.