# OpenGL ES Reference Manual

Version 1.0

Claude Knaus
September 2003
Draft Version 0.3
OpenGL ES EGL OpenGL ES EGL man reference

Contents

## Preface

### Style Conventions

The following style conventions apply to this document:

`Bold`

  Command and function names

Italics
  Variables and parameters
Regular

  Ordinary text

`Monospace`

  Constants and source code

## Summary of Commands and Routines

### OpenGL ES Commands

#### Primitives

Specify polygon offset:

- glPolygonOffset

#### Vertex Arrays

Specify vertex arrays:

- glColorPointer
- glNormalPointer
- glVertexPointer
- glTexCoordPointer

Select the active texture coordinate array:

- glClientActiveTexture

Draw vertex arrays:

- glEnableClientState
- glDisableClientState
- glDrawArrays
- glDrawElements

#### Coordinate Transformation

Transform the current matrix:

- glRotate
- glScale
- glTranslate
- glMultMatrix
- glFrustum
- glOrtho

Replace the current matrix:

- glLoadMatrix
- glLoadIdentity

Manipulate the matrix stack:

- glMatrixMode
- glPushMatrix
- glPopMatrix

Specify the viewport:

- glDepthRange
- glViewport

#### Color and Lighting

Set the current color and normal vector:

- glColor
- glNormal

Specify light source, material, or lighting model parameter values:

- glLight
- glMaterial
- glLightModel

Choose a shading model:

- glShadeModel

Specify which polygon orientation is front-facing:

- glFrontFace

#### Rasterization

Specify the dimensions of points or lines:

- glPointSize
- glLineWidth

Choose when polygons are rasterized:

- glCullFace

#### Pixel Operations

Read pixels:

- glReadPixels

Specify how pixels are encoded:

- glPixelStorei

#### Textures

Control how a texture is applied to a fragment:

- glTexParameter
- glTexEnv

Set the current texture coordinates:

- glMultiTexCoord

Specify a two-dimensional texture image or texture subimage:

- glTexImage2D
- glTexSubImage2D

Copy a texture or part of it:

- glCopyTexImage2D
- glCopyTexSubImage2D

Specify a two-dimensional compressed texture image or texture subimage:

- glCompressedTexImage2D
- glCompressedTexSubImage2D

Create a named texture:

- glBindTexture
- glDeleteTextures
- glGenTextures

Select the active texture unit:

- glActiveTexture

#### Fog

Set fog parameter:

- glFog

#### Frame Buffer Operations

Control per-fragment testing:

- glScissor
- glAlphaFunc
- glStencilFunc
- glStencilOp
- glDepthFunc

Combine fragment and frame buffer values:

- glBlendFunc
- glLogicOp

Clear buffers:

- glClear
- glClearColor
- glClearDepth
- glClearStencil

Control buffers enabled for writing:

- glColorMask
- glDepthMask
- glStencilMask

Control multisampling:

- glSampleCoverage

#### Modes and Execution

Enable and disable modes:

- glEnable
- glDisable

Wait until all GL commands have executed completely:

- glFinish

Force all issued GL commands to be executed:

- glFlush

Specify hints for GL operation:

- glHint

#### State Queries

Obtain information about an error or the current GL connection:

- glGetError
- glGetString

Query static state variables:

- glGet
- glGetBufferParameter
- glGetClipPlane
- glGetLight
- glGetMaterial

### OES Extensions

#### Query Matrix

Query the current matrix:

- glQueryMatrix

### EGL Functions

Manage or query display connections:

- eglGetDisplay
- eglInitialize
- eglQueryString
- eglTerminate

Request GL and EGL extension functions:

- eglGetProcAddress

Query errors:

- eglGetError

Request or query frame buffer configurations:

- eglGetConfigs
- eglChooseConfig
- eglGetConfigAttrib

Manage or query EGL rendering contexts:

- eglCreateContext
- eglDestroyContext
- eglQueryContext
- eglMakeCurrent
- eglGetCurrentContext
- eglGetCurrentSurface
- eglGetCurrentDisplay

Manage or query EGL surfaces:

- eglCreateWindowSurface
- eglCreatePixmapSurface
- eglCreatePbufferSurface
- eglDestroySurface
- eglQuerySurface

Synchronize execution:

- eglWaitGL
- eglWaitNative

Post and copy buffers:

- eglCopyBuffers
- eglSwapBuffers

## OpenGL ES Reference Pages

## EGL Reference Pages