iOS Guides | Samples

GLKit Namespace

The GLKit namespace provides a framework for configuring and using OpenGL.

Remarks

The main goal of GLKit is to simplify many repetitive and error prone tasks that developers face when building OpenGL code. It supports: texture loading, view and view controller integration of OpenGL content, OpenGLES effects and a OpenGLES 1.1 effect compatibility kit for OpenGLES 2.0 apps.

GLKit offers a convenient way of loading images as GL textures -- both synchronously and asynchrously. The GLTextureLoader can load textures and cube maps from CGImage objects, in-memory binary data, files and arbitrary NSUrl locations. The textures are returned as GLKTextureInfo objects.

It is now very easy to blend OpenGL content with Views and ViewControllers using GLKView and GLKViewController.

The GLKBaseEffect class contains the most commonly used OpenGLES 1.1 effects for use in 2.0 applications. These include lightning, materials, multi-texturing, fog, constant color and transformations.

Other effects part of GLKit include GLKSkyboxEffect and GLKReflectionMapEffect.

Classes

TypeReason
GLKBaseEffectA class that provides a variety of shaders based on the OpenGL ES 1.1 lighting and shading model.
GLKEffectPropertyA base class whose subtypes define properties for graphic effects.
GLKEffectPropertyFogA class that holds properties that configure how fog is applied to an effect.
GLKEffectPropertyLightA class that holds properties that configure how a single light is applied to an effect.
GLKEffectPropertyMaterialA class that holds properties that configure the characteristics of a surface being lit.
GLKEffectPropertyTextureA class that holds properties that configure an OpenGL texturing operation.
GLKEffectPropertyTransformA class that holds properties that configure the coordinate transforms to be applied when rendering an effect.
GLKFogModeAn enumeration whose values specify different types of fog effect.
GLKLightingTypeAn enumeration whose values specify how lighting is calculated by an effect.
GLKMesh
GLKMeshBuffer
GLKMeshBufferAllocator
GLKModelErrorDefines values whose values represent constant values relating to errors.
GLKNamedEffectA class that allows pre-drawing initialization for an effect.
GLKReflectionMapEffectA type of GLKBaseEffect that has a reflection-mapping texturing stage.
GLKSkyboxEffectA skybox effect.
GLKSubmesh
GLKTextureEnvModeAn enumeration of ways in which texture can be combined with other color components.
GLKTextureInfoEncapsulates the information relating to a texture.
GLKTextureInfoAlphaStateAn enumeration whose values specify the manner in which the alpha information is stored in the source image.
GLKTextureInfoOriginAn enumeration whose values specify the origin in the original source image.
GLKTextureLoaderLoads Image and cube maps into OpenGL textures.
GLKTextureLoaderCallbackSignature used by the asynchrous texture loading methods in GLKTextureLoader.
GLKTextureLoaderErrorAn enumeration whose values specify errors relating to texture loading.
GLKTextureOperationsStrong type used to configure GLKTextureLoader operations.
GLKTextureTargetAn enumeration whose values specify different kinds of texture.
GLKVertexAttribAn enumeration whose values specify various components of a vertex.
GLKVertexAttributeParameters
GLKViewA UIView that supports OpenGL ES rendering.
GLKView+GLKViewAppearanceAppearance class for objects of type GLKView.
GLKViewController
GLKViewControllerDelegateA delegate object that gives the application developer fine-grained control over events relating to the life-cycle of a GLKViewController object.
GLKViewControllerDelegate_ExtensionsExtension methods to the IGLKViewControllerDelegate interface to support all the methods from the GLKViewControllerDelegate protocol.
GLKViewDelegateA class that acts like a delegate object for instances of GLKView.
GLKViewDrawableColorFormatAn enumeration whose values specify the format of the color renderbuffer.
GLKViewDrawableDepthFormatAn enumeration whose values specify the format of the depth renderbuffer.
GLKViewDrawableMultisampleAn enumeration whose values specify the format of the multisampling buffer.
GLKViewDrawableStencilFormatAn enumeration whose values specify the format of the stencil renderbuffer.
GLKViewDrawEventArgsProvides data for the GLKViewDrawEventArgs.DrawInRect event.
IGLKNamedEffectInterface representing the required methods (if any) of the protocol GLKNamedEffect.
IGLKViewControllerDelegateInterface representing the required methods (if any) of the protocol GLKViewControllerDelegate.
IGLKViewDelegateInterface representing the required methods (if any) of the protocol GLKViewDelegate.