EAGLContext object manages an OpenGL ES rendering context—the state information, commands, and resources needed to draw using OpenGL ES. To execute OpenGL ES commands, you need a current rendering context.
- iOS 2.0+
- tvOS 9.0+
- OpenGL ES
Drawing resources, such as textures and renderbuffers, are managed for the
EAGLContext object by an
EAGLSharegroup object associated with the context. When you initialize a new
EAGLContext object, you can choose to have it create a new sharegroup, or you can use one obtained from a previously created context.
Before drawing to a context, you must bind a complete framebuffer object to the context. For more information on configuring rendering contexts, see OpenGL ES Programming Guide.