C# 클래스 Tao.OpenGl.Gl

파일 보기 프로젝트 열기: WolfgangSt/axiom

공개 메소드들

메소드 설명
GetDelegate ( string name, Type signature ) : Delegate

Creates a System.Delegate that can be used to call an OpenGL function, core or extension.

IsExtensionSupported ( string name ) : bool

Determines whether the specified OpenGL extension category is available in the current OpenGL context. Equivalent to IsExtensionSupported(name, true)

Load ( string function ) : bool

Tries to reload the given OpenGL function (core or extension).

Use this function if you require greater granularity when loading OpenGL entry points.

While the automatic initialisation will load all OpenGL entry points, in some cases the initialisation can take place before an OpenGL Context has been established. In this case, use this function to load the entry points for the OpenGL functions you will need, or use ReloadFunctions() to load all available entry points.

This function returns true if the given OpenGL function is supported, false otherwise.

To query for supported extensions use the IsExtensionSupported() function instead.

ReloadFunctions ( ) : void

Loads all OpenGL functions (core and extensions).

This function will be automatically called the first time you use any opengl function. There is

Call this function manually whenever you need to update OpenGL entry points. This need may arise if you change the pixelformat/visual, or in case you cannot (or do not want) to use the automatic initialization of the GL class.

비공개 메소드들

메소드 설명
BuildExtensionList ( ) : void

Builds a cache of all supported extensions.

DetectUnixKernel ( ) : string

Executes "uname" which returns a string representing the name of the underlying Unix kernel.

Source code from "Mono: A Developer's Notebook"

GetAddress ( string function ) : IntPtr

Retrieves the entry point for a dynamically exported OpenGL function.

The Marshal.GetDelegateForFunctionPointer method can be used to turn the return value into a call-able delegate.

This function is cross-platform. It determines the underlying platform and uses the correct wgl, glx or agl GetAddress function to retrieve the function pointer.

Marshal.GetDelegateForFunctionPointer
GetExtensionDelegate ( string name, Type signature ) : Delegate

Creates a System.Delegate that can be used to call a dynamically exported OpenGL function.

Gl ( ) : System
set ( object d, Delegate value ) : void

메소드 상세

GetDelegate() 공개 정적인 메소드

Creates a System.Delegate that can be used to call an OpenGL function, core or extension.
public static GetDelegate ( string name, Type signature ) : Delegate
name string The name of the OpenGL function (eg. "glNewList")
signature Type The signature of the OpenGL function.
리턴 Delegate

IsExtensionSupported() 공개 정적인 메소드

Determines whether the specified OpenGL extension category is available in the current OpenGL context. Equivalent to IsExtensionSupported(name, true)
public static IsExtensionSupported ( string name ) : bool
name string The string for the OpenGL extension category (eg. "GL_ARB_multitexture")
리턴 bool

Load() 공개 정적인 메소드

Tries to reload the given OpenGL function (core or extension).

Use this function if you require greater granularity when loading OpenGL entry points.

While the automatic initialisation will load all OpenGL entry points, in some cases the initialisation can take place before an OpenGL Context has been established. In this case, use this function to load the entry points for the OpenGL functions you will need, or use ReloadFunctions() to load all available entry points.

This function returns true if the given OpenGL function is supported, false otherwise.

To query for supported extensions use the IsExtensionSupported() function instead.

public static Load ( string function ) : bool
function string The name of the OpenGL function (i.e. glShaderSource)
리턴 bool

ReloadFunctions() 공개 정적인 메소드

Loads all OpenGL functions (core and extensions).

This function will be automatically called the first time you use any opengl function. There is

Call this function manually whenever you need to update OpenGL entry points. This need may arise if you change the pixelformat/visual, or in case you cannot (or do not want) to use the automatic initialization of the GL class.

public static ReloadFunctions ( ) : void
리턴 void