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
14
votes
2 answers

Is drawing front-to-back necessary for optimizing renders?

I've seen the occasional article suggest ordering your vertices from nearest to furthest from the camera when sending them to OpenGL (for any of the OpenGL variants). The reason suggested by this is that OpenGL will not fully process/render a vertex…
johnbakers
  • 24,158
  • 24
  • 130
  • 258
14
votes
4 answers

Dealing with Android's texture size limit

I have a requirement to display somewhat big images on an Android app. Right now I'm using an ImageView with a source Bitmap. I understand openGL has a certain device-independent limitation as to how big the image dimensions can be in order for it…
woot
  • 3,671
  • 4
  • 26
  • 39
14
votes
3 answers

Drawing table borders in libgdx 0.9.7

I am drawing a table in using libgdx game framework. Everything is rendered perfectly what I was trying to achieve. All I need now is to display cell borders of the table but I found nothing regarding this so far. I am also inclined to use the debug…
ktk
  • 297
  • 4
  • 13
14
votes
6 answers

How to get UIImage from EAGLView?

I am trying to get a UIImage from what is displayed in my EAGLView. Any suggestions on how to do this?
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
14
votes
6 answers

Why does this state that WebGL is a 2D API, not a 3D API?

According to HTML5 Rocks, WebGL is actually a 2D API, not a 3D API. Why do they say that, and what does it mean? We can specify X, Y, Z coordinates in WebGL vertex shaders and fragment shaders. I can't understand the difference between a 2D and 3D…
Saravana Kumar
  • 816
  • 1
  • 12
  • 28
14
votes
2 answers

Any GLES examples, in C++, on x86 Linux?

I'm looking for a good source of GLES2 samples for C++ (or C) on x86 Linux with Xorg. The samples I can find are all in Objective C for iOS, or Java for Android, or JavaScript for WebGL. The Kronos web site has a "tutorials" section that contains…
Jon Watte
  • 6,579
  • 4
  • 53
  • 63
13
votes
2 answers

OpenGL ES (2.0) Shading Language: How to input boolean into vertex shader and pass to fragment shader?

I'm trying to pass a boolean into my vertex shader for the first time; I've only been using floats until now. The boolean in question is primitive-specific so cannot be passed as a uniform. However it has the same value for all vertices of any given…
KomodoDave
  • 7,239
  • 10
  • 60
  • 92
13
votes
2 answers

Android "cpu may be pegged" bug

Foreword: This severe bug can cause Android devices to lock up (unable to press Home/Back buttons, needs hard reset). It is associated with OpenGL surfaces and audio playback. Logcat repeats something to the effect of W/SharedBufferStack( 398):…
Dororo
  • 3,420
  • 2
  • 30
  • 46
13
votes
4 answers

OpenGL ES 2.0 render to texture

I'm trying to render to a texture using OpenGL ES 2.0, but I can't seem to make it work. This is how I proceed: struct RenderTexture { GLuint framebuffer; GLuint tex; GLint old_fbo; RenderTexture(GLuint…
sharvey
  • 7,635
  • 7
  • 48
  • 66
13
votes
2 answers

Split tone effect using core image filters?

I understand the principles behind the split tone effect, and would love to use either a color map or tone curves for individual rgb channels. Unfortunately that's not an option for iOS at the moment, as the SDK does not include those filters. The…
akaru
  • 6,299
  • 9
  • 63
  • 102
13
votes
2 answers

Using GLSurfaceView class with android xml layouts

I want to make use of the android xml layouts. I have put a glSurfaceView in a frame layout to use in conjunction with a linear layout like so...
Jack
  • 2,625
  • 5
  • 33
  • 56
13
votes
7 answers

OpenGL—ES 1.0 2d rounded rectangle

How to make rounded rectangle in OpenGL, or any polygon with rounded corners?
michael
  • 3,250
  • 10
  • 43
  • 58
13
votes
2 answers

3D Carousel effect on the iPad

I am trying to implement a 3D Carousel on the iPad, consisting of UIViews, an effect like what is shown over here. I have gone through many similar questions on SO, but didn't find any staisfactory answers or no answers at all. I am trying to…
Vin
  • 10,517
  • 10
  • 58
  • 71
13
votes
3 answers

How can I find a list of all the uniforms in OpenGL es 2.0 vertex shader pro

I'm trying to learn how to program vertex shaders. In Apple's sample project they have a line to set a glUniform1f(uniforms[UNIFORM_TRANSLATE], (Glfloat)transY); Then this value is used in // value passt in f //…
Ted pottel
  • 6,869
  • 21
  • 75
  • 134
13
votes
1 answer

Any glPolygonMode alternative on iPhone (OpenGL ES)?

I'm new to OpenGL, and I found out that OpenGL ES doesn't support APIs such as glPolygonMode( GL_BACK, GL_FILL); Any ideas how to implement it?
Kordan Ou
  • 1,502
  • 3
  • 15
  • 25