JimSeker / opengl

android OpenGL examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGl Examples

eclipse/ has the examples that eclipse can load (no longer updated). Otherwise, everything uses android studio.

OpenGL11examples/ has all the open GL 1.1 examples No longer updated.


OpenGL 2.0 examples:

HelloOpenGLES20 is Google’s basic framework example. 2D square and triangle with touch events to spin the triangle API 8+

Opengl2ex1 uses a renderer (lessonOne from http://www.learnopengles.com/android-lesson-one-getting-started/) and mainactivity to setup everything NOTE: this example may fail in the emulators, but works on a physical device.

Opengl2ex2 extends a GLsurfaceView to setup everything. Again, use the Lessonone renderer.


OpenGL 3.X examples:

intended to get you started in OpenGL 3.0, but don't provide any depth of coverage.

HelloOpenGLES30 is Google’s basic framework example from 2.0, updated to OpenGL ES 3.0. 2D square and triangle with touch events to spin the triangle. API 18+

Opengl3ex1 is based on Opengl2ex1, with references changed to GLES30. Note this may fail in emulators.

Opengl3ex2 is based on Opengl2ex2, again with references changed. Note this may fail in emulators.

Opengl3ex3 is from the OpenGL ES 3.0 Programing Guide, which can be found here: http://opengles-book.com/samplecode.html

OpenGL30Cube is Cube that spins and uses touchlistener to move up/down left/right.

OpenGL30Pryamid is Pyramid that spins and uses touchlistener to move up/down left/right.

OpenGL30CubeTextureView is the same renderer as OpenGL30Cube, except this uses a TextureView instead of surfaceView. The TextureView has to setup all the openGL stuff, which takes a chunk of code to do.

HelloOpenGLES31 is Google’s basic framework example from 2.0, updated to OpenGL ES 3.1. 2D square and triangle with touch events to spin the triangle. The setEGLContextClientVersion(3); maybe wrong, since I could not find how to set it for 3.1. All other entries are set correctly. API 21+

HelloOpenGLES32 is Google’s basic framework example from 2.0, updated to OpenGL ES 3.2. 2D square and triangle with touch events to spin the triangle. The setEGLContextClientVersion(3); maybe wrong, since I could not find how to set it for 3.2. All other entries are set correctly. API 24+


These are example code for University of Wyoming, Cosc 4730 Mobile Programming course and cosc 4735 Advance Mobile Programing course. All examples are for Android.

About

android OpenGL examples

License:Apache License 2.0


Languages

Language:Java 100.0%