OpenGL
A noob's guide for Android developers
Benjamin Monjoie
Slide 2
Slide 2 text
The promise
https://www.turbosquid.com/3d-models/3d-pine-tree-model/700221
Slide 3
Slide 3 text
The reality
http://www.script-tutorials.com/demos/145/img1.jpg
300 lines of code later ...
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
The challenge
Slide 6
Slide 6 text
Roadmap
●
What is OpenGL ?
●
What about with Android ?
●
OpenGL’s internals
●
Shaders
●
Enter the matrix
●
Advices
●
Bonus
Slide 7
Slide 7 text
Roadmap
●
What is OpenGL ?
●
What about with Android ?
●
OpenGL’s internals
●
Shaders
●
Enter the matrix
●
Advices
●
Bonus
Slide 8
Slide 8 text
What is OpenGL ?
http://infos-reportages.com/wp-content/uploads/2016/10/phone_hero-module_hero-image_144
0_2x.png
http://fr.ubergizmo.com/wp-content/uploads/2013/02/chromebook-pixel.png
http://www.samsung.com/us/explore/family-hub-refrigerator/assets/images/glance/food-manag
ement-slide01-mb.png
http://www.samsung.com/us/2012-smart-blu-ray-player/img/tv-front.png
Slide 9
Slide 9 text
OpenGL & Android
●
OpenGL ES 1.0 & 1.1 since Android 1.0 (API 4)
Slide 10
Slide 10 text
OpenGL & Android
●
OpenGL ES 1.0 & 1.1 since Android 1.0 (API 4)
●
OpenGL ES 2.0 since Android 2.2 (API 8)
Slide 11
Slide 11 text
OpenGL & Android
●
OpenGL ES 1.0 & 1.1 since Android 1.0 (API 4)
●
OpenGL ES 2.0 since Android 2.2 (API 8)
●
OpenGL ES 3.0 since Android 4.3 (API 18) (almost)
Slide 12
Slide 12 text
OpenGL & Android
●
OpenGL ES 1.0 & 1.1 since Android 1.0 (API 4)
●
OpenGL ES 2.0 since Android 2.2 (API 8)
●
OpenGL ES 3.0 since Android 4.3 (API 18) (almost)
●
OpenGL ES 3.1 since Android 5.0 (API 21)
Slide 13
Slide 13 text
OpenGL & Android
●
OpenGL ES 1.0 & 1.1 since Android 1.0 (API 4)
●
OpenGL ES 2.0 since Android 2.2 (API 8)
●
OpenGL ES 3.0 since Android 4.3 (API 18) (almost)
●
OpenGL ES 3.1 since Android 5.0 (API 21)
Roadmap
●
What is OpenGL ?
●
What about with Android ?
●
OpenGL’s internals
●
Shaders
●
Enter the matrix
●
Advices
●
Bonus
Slide 16
Slide 16 text
What about with Android ?
GLSurfaceView & GLSurfaceView.Renderer
onSurfaceCreated
(GL10 gl, EGLConfig
config)
onSurfaceChanged
(GL10 gl, int width, int
height)
onDrawFrame
(GL10 gl)
Slide 17
Slide 17 text
Roadmap
●
What is OpenGL ?
●
What about with Android ?
●
OpenGL’s internals
●
Shaders
●
Enter the matrix
●
Advices
●
Bonus