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
22
votes
7 answers

Getting started with OpenGL ES 2.0 on Windows

This is a very specific questions about the steps necessary to Build a simple OpenGL ES 2.0 program on the Windows platform. The environment is Visual Studio with unmanaged C++. I go to the Khronos.org site and, frankly, find it a bit opaque…
Buggieboy
  • 4,636
  • 4
  • 55
  • 79
22
votes
2 answers

How to define constant array in GLSL (OpenGL ES 2.0)?

I just want to store an array of weights that needs to every fragment calculation. This: float weights[5] = float[5](3.4, 4.2, 5.0, 5.2, 1.1); Just throws this: ERROR: 0:30: ']' : syntax error syntax error ERROR: 0:30: ';' : syntax error syntax…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
21
votes
1 answer

Can Vertex Array Objects (VAOs) be shared across EAGLContexts in OpenGL ES?

Spoiler: I'm fairly confident that the answer is NO, but that's only after a day of very frustrated debugging. Now I would like to know if that is indeed the case (and if so, how I might have known), or if I'm just doing something completely…
Matt Wilding
  • 20,115
  • 3
  • 67
  • 95
21
votes
2 answers

How do I replace glBegin() and related functions in OpenGL ES 2.0?

I have OpenGL code like the following that I'd like to port to OpenGL ES 2.0: for (surfnum=0;surfnum < surftotal;surfnum++){ for (i=0;i
Sudhanshu Gupta
  • 2,255
  • 3
  • 36
  • 74
21
votes
3 answers

Android: GLES20: Called unimplemented OpenGL ES API

I am getting a "Called unimplemented OpenGL ES API" error, when trying the GLES20 Sample, provided by developer.android.com. I modified the sample, though. The reason was because I got an IllegalArgumentException in…
Coolkill
  • 221
  • 1
  • 2
  • 3
21
votes
2 answers

Android: Deciding between SurfaceView and OpenGL (GLSurfaceView)

Is there a way to decide up front based on the expected complexity of a game/app in the planning phase whether to use regular Canvas drawing in a SurfaceView or to go with OpenGL? I've been playing around with a Canvas and only need 2D movement, and…
Rich
  • 36,270
  • 31
  • 115
  • 154
21
votes
2 answers

PVR textures versus PNG in OpenGL ES

I'm developing a 2D application for the iPhone that renders lots of textures. Most of them are loaded from PNG files with alpha transparency at the moment. As a test I've been playing around with PVR-testures as well to see if there is any…
Jens Utbult
  • 923
  • 1
  • 7
  • 16
21
votes
4 answers

Does the Android Emulator support OpenGL ES 2.0?

This article http://cobworks.ca/2010/04/19/why-android-market-has-no-games/ suggests that it does not, but I was hoping something might have changed since April.
eodabash
  • 959
  • 2
  • 8
  • 24
21
votes
1 answer

How to make a custom Camera with live Stickers

I am making a custom camera with face detection, which works successfully. But I want to add stickers like to the recorded/previewed face. The location of the eyes is used to properly size and place a hat, glasses, and tie etc. on the Preview. The…
Arjun saini
  • 4,223
  • 3
  • 23
  • 51
21
votes
2 answers

GLES10.glGetIntegerv returns 0 in Lollipop only

This piece of code used to work in my Nexus 7 2012 KitKat: int[] maxSize = new int[1]; GLES10.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxSize, 0); In KitKat I can obtain the max pixel value correctly, but after the upgrade to factory image Lollipop…
Neoh
  • 15,906
  • 14
  • 66
  • 78
21
votes
5 answers

Warp \ bend effect on a UIView?

I'm trying to get a similar effect to the one described in the pictures. The white area on the left isn't on the original photo, it pushes the pixels away. I've tried using Core Image (which offered a few close effects to this) but it was too slow…
Segev
  • 19,035
  • 12
  • 80
  • 152
21
votes
7 answers

How to learn and use OpenGL ES 2.0? I just don't get it - serious Qn.

This is a serious question, I am "stuck" at this point between understanding it and not at all. I got very confused with the time reading different resources and would like someone to point me in the right direction. I am working with Android…
Baruch
  • 1,618
  • 5
  • 23
  • 42
21
votes
2 answers

Can I use AVFoundation to stream downloaded video frames into an OpenGL ES texture?

I've been able to use AVFoundation's AVAssetReader class to upload video frames into an OpenGL ES texture. It has a caveat, however, in that it fails when used with an AVURLAsset that points to remote media. This failure isn't well documented, and…
Matt Wilding
  • 20,115
  • 3
  • 67
  • 95
21
votes
2 answers

Unexpected results implementing simple motion blur in Libgdx

In the two attached pictures, the desktop screenshot of libgdx functions as expected. The screenshot from my Galaxy Nexus is unfortunately not as expected. I am attempting to create a simple motion blur or trail effect. Rendering as I expected on my…
ian.shaun.thomas
  • 3,468
  • 25
  • 40
20
votes
6 answers

Android ICS : JNI error attempt to use stale local reference 0x1

After upgrading my phone to android 4.03 ics my game dosent open anymore ,it just closes without any error messege on deviCe and with this on eclipse 04-02 16:55:27.672: E/dalvikvm(26884): JNI ERROR (app bug): attempt to use stale local reference…
SteveL
  • 3,331
  • 4
  • 32
  • 57