C# 클래스 OpenTK.Platform.Utilities

Provides cross-platform utilities to help interact with the underlying platform.
파일 보기 프로젝트 열기: andykorth/opentk 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateGraphicsContext IGraphicsContext
LoadExtensions void
TryLoadExtension bool

공개 메소드들

메소드 설명
CreateDummyWindowInfo ( ) : IWindowInfo

Creates an IWindowInfo instance for the dummy platform.

CreateMacOSCarbonWindowInfo ( IntPtr windowHandle, bool ownHandle, bool isControl ) : IWindowInfo

Creates an IWindowInfo instance for the Mac OS X platform.

CreateSdl2WindowInfo ( IntPtr windowHandle ) : IWindowInfo

Creates an IWindowInfo instance for the windows platform.

CreateWindowsWindowInfo ( IntPtr windowHandle ) : IWindowInfo

Creates an IWindowInfo instance for the windows platform.

CreateX11WindowInfo ( IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo ) : IWindowInfo

Constructs a new IWindowInfo instance for the X11 platform.

비공개 메소드들

메소드 설명
CreateGraphicsContext ( OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, int major, int minor, GraphicsContextFlags flags ) : IGraphicsContext
LoadExtensions ( Type type ) : void

Loads all extensions for the specified class. This function is intended for OpenGL, Wgl, Glx, OpenAL etc.

The Type must contain a nested class called "Delegates".

The Type must also implement a static function called LoadDelegate with the following signature: static Delegate LoadDelegate(string name, Type signature)

This function allocates memory.

TryLoadExtension ( Type type, string extension ) : bool

Loads the specified extension for the specified class. This function is intended for OpenGL, Wgl, Glx, OpenAL etc.

The Type must contain a nested class called "Delegates".

The Type must also implement a static function called LoadDelegate with the following signature: static Delegate LoadDelegate(string name, Type signature)

This function allocates memory.

메소드 상세

CreateDummyWindowInfo() 공개 정적인 메소드

Creates an IWindowInfo instance for the dummy platform.
public static CreateDummyWindowInfo ( ) : IWindowInfo
리턴 IWindowInfo

CreateMacOSCarbonWindowInfo() 공개 정적인 메소드

Creates an IWindowInfo instance for the Mac OS X platform.
public static CreateMacOSCarbonWindowInfo ( IntPtr windowHandle, bool ownHandle, bool isControl ) : IWindowInfo
windowHandle System.IntPtr The handle of the window.
ownHandle bool Ignored. This is reserved for future use.
isControl bool Set to true if windowHandle corresponds to a System.Windows.Forms control.
리턴 IWindowInfo

CreateSdl2WindowInfo() 공개 정적인 메소드

Creates an IWindowInfo instance for the windows platform.
public static CreateSdl2WindowInfo ( IntPtr windowHandle ) : IWindowInfo
windowHandle System.IntPtr The handle of the window.
리턴 IWindowInfo

CreateWindowsWindowInfo() 공개 정적인 메소드

Creates an IWindowInfo instance for the windows platform.
public static CreateWindowsWindowInfo ( IntPtr windowHandle ) : IWindowInfo
windowHandle System.IntPtr The handle of the window.
리턴 IWindowInfo

CreateX11WindowInfo() 공개 정적인 메소드

Constructs a new IWindowInfo instance for the X11 platform.
public static CreateX11WindowInfo ( IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo ) : IWindowInfo
display System.IntPtr The display connection.
screen int The screen.
windowHandle System.IntPtr The handle for the window.
rootWindow System.IntPtr The root window for screen.
visualInfo System.IntPtr A pointer to a XVisualInfo structure obtained through XGetVisualInfo.
리턴 IWindowInfo