Show / Hide Table of Contents

Interface IGraphicsContextInternal

Provides methods to create new GraphicsContexts. Should only be used for extending OpenTK.

Namespace: OpenTK.Graphics
Assembly: cs.temp.dll.dll
Syntax
public interface IGraphicsContextInternal

Properties

Context

Gets a handle to the OpenGL rendering context.

Declaration
ContextHandle Context { get; }
Property Value
Type Description
ContextHandle

Implementation

Gets the internal implementation of the current instance.

Declaration
IGraphicsContext Implementation { get; }
Property Value
Type Description
IGraphicsContext

Methods

GetAddress(IntPtr)

Retrieves the implementation-defined address of an OpenGL function.

Declaration
IntPtr GetAddress(IntPtr function)
Parameters
Type Name Description
System.IntPtr function

A pointer to a null-terminated buffer containing the name of the OpenGL function.

Returns
Type Description
System.IntPtr

A pointer to the specified function or an invalid pointer if the function is not available in the current OpenGL context. The return value and calling convention depends on the underlying platform.

Remarks
GetAddress(String)

GetAddress(String)

Retrieves the implementation-defined address of an OpenGL function.

Declaration
IntPtr GetAddress(string function)
Parameters
Type Name Description
System.String function

The name of the OpenGL function (e.g. "glGetString")

Returns
Type Description
System.IntPtr

A pointer to the specified function or an invalid pointer if the function is not available in the current OpenGL context. The return value and calling convention depends on the underlying platform.

LoadAll()

Loads all OpenGL entry points. Requires this instance to be current on the calling thread.

Declaration
void LoadAll()
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX