Edytuj

Udostępnij za pośrednictwem


iPhoneOSGraphicsContext Class

Definition

IGraphicsContext and IGraphicsContextInternal implementation for iPhoneOS.

public class iPhoneOSGraphicsContext : IDisposable, OpenTK.Graphics.IGraphicsContext, OpenTK.Graphics.IGraphicsContextInternal
type iPhoneOSGraphicsContext = class
    interface IGraphicsContext
    interface IDisposable
    interface IGraphicsContextInternal
Inheritance
iPhoneOSGraphicsContext
Implements

Remarks

Instances of this class are implicitly created by GraphicsContext. This type cannot be directly created by the developer.

The primary purpose for this type is to obtain access to the wrapped EAGLContext instance, which may need to be used in certain circumstances. If you have a GraphicsContext instance as returned by CreateGraphicsContext(EAGLRenderingAPI), you can obtain the wrapped EAGLContext instance by doing:

var context = ...
    // e.g. Utilities.CreateGraphicsContext(EAGLRenderingAPI.OpenGLES1);
var internalGC = context as IGraphicsContextInternal;
iPhoneOSGraphicsContext iPhoneGC = internalGC.Implementation as iPhoneOSGraphicsContext;
if (iPhoneGC != null) {
    EAGLContext eaglContext = iPhoneGC.Context;
}

Alternatively, use iPhoneOSGameView as your base type, and use EAGLContext to obtain the wrapped EAGLContext.

Properties

EAGLContext

Gets the EAGLContext.

ErrorChecking

Whether automatic error checking should be performed on GL calls.

GraphicsMode

The format for graphics operations.

IsCurrent

Gets a value indicating whether this graphics context is the current graphics context.

IsDisposed
VSync

This member is not supported.

Methods

Dispose()

Releases all resources used by the iPhoneOSGraphicsContext.

Dispose(Boolean)

Releases all resources used by the iPhoneOSGraphicsContext.

Finalize()

Releases unmanaged resources.

MakeCurrent(IWindowInfo)
SwapBuffers()

Swap buffers, presenting the rendered scene to the user.

Update(IWindowInfo)

Explicit Interface Implementations

IGraphicsContext.LoadAll()
IGraphicsContext.SwapInterval
IGraphicsContextInternal.Context

Gets a handle to the current OpenGL rendering context.

IGraphicsContextInternal.GetAddress(String)

Gets the address of an OpenGL extension function.

IGraphicsContextInternal.Implementation

Get the internal implementation of the current instance.

IGraphicsContextInternal.LoadAll()

Prepares the entry points for OpenGL.

Applies to