Questions tagged [opengl-es]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones.

OpenGL for Embedded Systems (OpenGL ES) is a subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones, PDA's, and video game consoles. OpenGL ES is managed by the not-for-profit technology consortium, the Khronos Group, Inc.

Current version is OpenGL ES 3.2 (), publicly released in August 2015.

OpenGL ES 2.0
OpenGL ES 2.0 eliminates most of the fixed-function rendering pipeline in favor of a programmable one. Almost all rendering features of the transform and lighting pipelines, such as the specification of materials and light parameters formerly specified by the fixed-function API, are replaced by shaders written by the graphics programmer. As a result, OpenGL ES 2.0 is not backwards compatible with OpenGL ES 1.1.

OpenGL ES 3.0
The latest major version is the OpenGL ES 3.0 specification, publicly released in August 2012. OpenGL ES 3.0 is backwards compatible with OpenGL ES 2.0, enabling applications to incrementally add new visual features to applications.

More information at

  1. Khronos Official page
  2. Wikipedia page on OpenGLES
  3. Khronos OpenGL ES Registry

Books:

14058 questions
170
votes
10 answers

Tutorials and libraries for OpenGL-ES games on Android

What tutorials and libraries are available which can help beginners to develop 2D and 3D games on Android using OpenGL-ES? I'm looking for tutorials which can help me learn OpenGL-ES, and I'm looking for OpenGL-ES libraries which can make life…
arberg
  • 4,148
  • 4
  • 31
  • 39
133
votes
13 answers

Draw text in OpenGL ES

I'm currently developing a small OpenGL game for the Android platform and I wonder if there's an easy way to render text on top of the rendered frame (like a HUD with the player´s score etc). The text would need to use a custom font also. I've seen…
shakazed
  • 1,493
  • 2
  • 10
  • 10
104
votes
13 answers

OpenGL ES versus OpenGL

What are the differences between OpenGL ES and OpenGL ?
kml_ckr
  • 2,211
  • 3
  • 22
  • 35
97
votes
5 answers

Android OpenGL ES and 2D

Well, here's my request. I don't know OpenGL already, and I'm not willing to learn it, I want to learn OpenGL ES directly since I'm targeting my development to android, however. I want to learn OpenGL ES in order to develop my 2D games. I chose it…
CoolStraw
  • 5,282
  • 8
  • 42
  • 64
87
votes
3 answers

Explicit vs Automatic attribute location binding for OpenGL shaders

When setting up attribute locations for an OpenGL shader program, you are faced with two options: glBindAttribLocation() before linking to explicitly define an attribute location. or glGetAttribLocation() after linking to obtain an…
Jing
  • 1,881
  • 2
  • 15
  • 13
85
votes
3 answers

X11/Xlib.h not found in Ubuntu

I'm trying to write a rather trivial program using open gl on linux, but at a compile time it says: Compile thumb : egl <= cuberenderer.c In file included from /path/include/egl.h:36, from /path/cuberenderer.c:7: …
Denys S.
  • 6,358
  • 12
  • 43
  • 65
81
votes
7 answers

How to deal with different aspect ratios in libGDX?

I have implemented some screens using libGDX that would obviously use the Screen class provided by the libGDX framework. However, the implementation for these screens works only with pre-defined screen sizes. For example, if the sprite was meant for…
Rafay
  • 6,108
  • 11
  • 51
  • 71
75
votes
1 answer

What does `precision mediump float` mean?

In the learningwebgl tutorial1 I've found an interesting line in the fragment shader. precision mediump float; I've found an article about it here, but I still can't understand what does it mean? And if I remove this line, nothing changes.…
Hard Rain
  • 1,380
  • 4
  • 14
  • 19
68
votes
1 answer

"This UIView seems to be the delegate of an NSISVariable it doesn't know anything about. This is an internal UIKit bug" Error

I am working on an opengl project. I have used some images (2 for x-y scales) and labels (8) to display the scale on the screen. My first view is a tableview from which I go to openglView. But whenever I go back from openglView to the tableView it…
user1589426
  • 681
  • 5
  • 4
67
votes
2 answers

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

Is there any faster way to access the frame buffer than using glReadPixels? I would need read-only access to a small rectangular rendering area in the frame buffer to process the data further in CPU. Performance is important because I have to…
atisman
  • 1,187
  • 1
  • 11
  • 16
65
votes
2 answers

Rendering meshes with multiple indices

I have some vertex data. Positions, normals, texture coordinates. I probably loaded it from a .obj file or some other format. Maybe I'm drawing a cube. But each piece of vertex data has its own index. Can I render this mesh data using…
Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
63
votes
6 answers

Rendering SVG with OpenGL (and OpenGL ES)

I am currently investigating the possibility of rendering vector graphics from an SVG file using OpenGL and OpenGL ES. I intend to target Windows and Android. My ideal solution would be to have a minimal C library that generates a polygon…
Matt Esch
  • 22,661
  • 8
  • 53
  • 51
63
votes
6 answers

How to use onSensorChanged sensor data in combination with OpenGL

( edit: I added the best working approach in my augmented reality framework and now also take the gyroscope into account which makes it much more stable again: DroidAR framework ) I have written a TestSuite to find out how to calculate the rotation…
Simon
  • 13,173
  • 14
  • 66
  • 90
61
votes
5 answers

GLSurfaceView inside fragment not rendering when restarted

I have a GLSurfaceView set up and rendering as expected using a GLSurfaceView.Renderer. My App uses fragments from the android support package. When I navigate to a new fragment surfaceDestroyed is called but when I come back to the fragment via the…
Ian Ellis
  • 650
  • 5
  • 10
58
votes
6 answers

Is there a way to import a 3D model into Android?

Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
Maciej Gryka
  • 8,181
  • 4
  • 34
  • 30
1
2 3
99 100