Düzenle

Aracılığıyla paylaş


GLKit Namespace

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

Classes

GLKBaseEffect

A class that provides a variety of shaders based on the OpenGL ES 1.1 lighting and shading model.

GLKEffectProperty

A base class whose subtypes define properties for graphic effects.

GLKEffectPropertyFog

A class that holds properties that configure how fog is applied to an effect.

GLKEffectPropertyLight

A class that holds properties that configure how a single light is applied to an effect.

GLKEffectPropertyMaterial

A class that holds properties that configure the characteristics of a surface being lit.

GLKEffectPropertyTexture

A class that holds properties that configure an OpenGL texturing operation.

GLKEffectPropertyTransform

A class that holds properties that configure the coordinate transforms to be applied when rendering an effect.

GLKMesh
GLKMeshBuffer
GLKMeshBufferAllocator
GLKModelError

Defines values whose values represent constant values relating to errors.

GLKNamedEffect

A class that allows pre-drawing initialization for an effect.

GLKReflectionMapEffect

A type of GLKBaseEffect that has a reflection-mapping texturing stage.

GLKSkyboxEffect

A skybox effect.

GLKSubmesh
GLKTextureInfo

Encapsulates the information relating to a texture.

GLKTextureLoader

Loads Image and cube maps into OpenGL textures.

GLKTextureOperations

Strong type used to configure GLKTextureLoader operations.

GLKView

A UIView that supports OpenGL ES rendering.

GLKView.GLKViewAppearance

Appearance class for objects of type GLKView.

GLKViewController
GLKViewControllerDelegate

A delegate object that gives the application developer fine-grained control over events relating to the life-cycle of a GLKViewController object.

GLKViewControllerDelegate_Extensions

Extension methods to the IGLKViewControllerDelegate interface to support all the methods from the GLKViewControllerDelegate protocol.

GLKViewDelegate

A class that acts like a delegate object for instances of GLKView.

GLKViewDrawEventArgs

Provides data for the DrawInRect event.

Structs

GLKVertexAttributeParameters

Interfaces

IGLKNamedEffect

Interface representing the required methods (if any) of the protocol GLKNamedEffect.

IGLKViewControllerDelegate

Interface representing the required methods (if any) of the protocol GLKViewControllerDelegate.

IGLKViewDelegate

Interface representing the required methods (if any) of the protocol GLKViewDelegate.

Enums

GLKFogMode

An enumeration whose values specify different types of fog effect.

GLKLightingType

An enumeration whose values specify how lighting is calculated by an effect.

GLKTextureEnvMode

An enumeration of ways in which texture can be combined with other color components.

GLKTextureInfoAlphaState

An enumeration whose values specify the manner in which the alpha information is stored in the source image.

GLKTextureInfoOrigin

An enumeration whose values specify the origin in the original source image.

GLKTextureLoaderError

An enumeration whose values specify errors relating to texture loading.

GLKTextureTarget

An enumeration whose values specify different kinds of texture.

GLKVertexAttrib

An enumeration whose values specify various components of a vertex.

GLKViewDrawableColorFormat

An enumeration whose values specify the format of the color renderbuffer.

GLKViewDrawableDepthFormat

An enumeration whose values specify the format of the depth renderbuffer.

GLKViewDrawableMultisample

An enumeration whose values specify the format of the multisampling buffer.

GLKViewDrawableStencilFormat

An enumeration whose values specify the format of the stencil renderbuffer.

Delegates

GLKTextureLoaderCallback

Signature used by the asynchrous texture loading methods in GLKTextureLoader.

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 T:GLKit.GLTextureLoader can load textures and cube maps from T:MonoTOuch.CoreGraphics.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.