GL_UNPACK_SWAP_BYTES was not declared in this scope & others <p>So i'm trying to use the <code>glPixelStorei</code> methods from OpenGL ES 2.0 in an NDK plugin i'm writing. After some fiddling with the includes, I can get it doing most things i want. However, there is an ongoing issue with getting the defined macros like in the title to work. Currently, eclipse is producing errors like the title for each of the macros in the first arguments of each call below: </p> <pre><code>glPixelStorei( GL_UNPACK_SWAP_BYTES, GL_FALSE ); glPixelStorei( GL_UNPACK_LSB_FIRST, GL_TRUE ); glPixelStorei( GL_UNPACK_ROW_LENGTH, 0 ); glPixelStorei( GL_UNPACK_SKIP_PIXELS, 0); glPixelStorei( GL_UNPACK_SKIP_ROWS, 0); </code></pre> <p>However, it shows <code>glPixelStorei( GL_UNPACK_ALIGNMENT, 0);</code> as error-free and even tells me <code>GL_UNPACK_ALIGNMENT</code> has a value of (<code>0x0CF5</code>). It will build fine without the above lines, but they provide some necessary functionality, so fixing it is the priority.</p> <p>I have included: <code>#include &lt;GLES2/gl2.h&gt;</code> and <code>#include &lt;EGL/egl.h&gt;</code></p> <p>Am I missing an include for macro definitions or is this an issue with OpenGL ES? I noticed after looking at the header files, there are no definitions for the problem macros.</p> <p>I wasn't sure how best to word this issue so i do apologize if this has been asked before, but i was not able to find any questions on the topic.</p>