Questions tagged [opengl-es-2.0]

Subset of the OpenGL 3D graphics API designed for embedded devices such as mobile phones. This version 2.0 eliminates most of the fixed-function rendering pipeline in favor of a programmable one.

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

OpenGL ES 2.0 was publicly released in March 2007. It 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. Some incompatibilities between the desktop version of OpenGL and OpenGL ES 2.0 persisted until OpenGL 4.1, which added the GL_ARB_ES2_compatibility extension.

More details at http://en.wikipedia.org/wiki/OpenGL_ES#OpenGL_ES_2.0

Resources:

3921 questions
30
votes
2 answers

Difference between Frame buffer object, Render buffer object and texture?

what is the Difference between Frame buffer object, Render buffer object and texture? In what context they will be used?
Megharaj
  • 1,589
  • 2
  • 20
  • 32
29
votes
4 answers

What versions of GLSL can I use in OpenGL ES 2.0?

I can't seem to find a clear answer on this, despite hours of googling. Can someone just tell me what's going on? I get errors saying things like, "version 140 is not supported." Is this my device (Kindle Fire) or GL ES 2.0? Do I need to add…
Kyle Emmerich
  • 621
  • 3
  • 9
  • 17
29
votes
5 answers

Is discard bad for program performance in OpenGL?

I was reading this article, and the author writes: Here's how to write high-performance applications on every platform in two easy steps: [...] Follow best practices. In the case of Android and OpenGL, this includes things like "batch draw calls",…
Jave
  • 31,598
  • 14
  • 77
  • 90
28
votes
4 answers

Learning OpenGLES 2.0 on iOS

I'm a beginner with OpenGL ES 2.0 and I'm looking for a good book/resource that will help me with my learning. I've found several books: OpenGL® ES 2.0 Programming Guide iPhone 3D Programming: Developing Graphical Applications with OpenGL ES but…
Rad'Val
  • 8,895
  • 9
  • 62
  • 92
28
votes
5 answers

Is it possible to draw line thickness in a fragment shader?

Is it possible for me to add line thickness in the fragment shader considering that I draw the line with GL_LINES? Most of the examples I saw seem to access only the texels within the primitive in the fragment shader and a line thickness shader…
Meda
  • 2,776
  • 4
  • 20
  • 31
28
votes
5 answers

Draw a 2D Image using OpenGL ES 2.0

I've been struggling to draw a 2D image from jpg/png files using openGL ES 2.0 for Android. Everywhere I look the tutorials are for texturing 3D images so its been rough figuring out how to draw a regular 2D Sprite. I got a square to draw and…
Strifex
  • 832
  • 1
  • 7
  • 16
27
votes
3 answers

Perspective correct texturing of trapezoid in OpenGL ES 2.0

I have drawn a textured trapezoid, however the result does not appear as I had intended. Instead of appearing as a single unbroken quadrilateral, a discontinuity occurs at the diagonal line where its two comprising triangles meet. This illustration…
elbowpa
  • 498
  • 1
  • 5
  • 9
26
votes
1 answer

What is glVertexAttrib (versus glVertexAttribPointer) used for?

I understand that glVertexAttribPointer will set the values for a vertex attribute based on the pointed-to array. What is glVertexAttrib for, though? It looks like it just sets a single (possibly vector) value for the vertex attribute, so what…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
26
votes
8 answers

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

At a high level, I created an app that lets a user point his or her iPhone camera around and see video frames that have been processed with visual effects. Additionally, the user can tap a button to take a freeze-frame of the current preview as a…
sotangochips
  • 2,700
  • 6
  • 28
  • 38
26
votes
4 answers

Javascript and WebGL, external scripts

Just curious; How do I place my webgl shaders, in an external file? Currently I'm having;