C# Класс OpenTK.Platform.Utilities

Provides cross-platform utilities to help interact with the underlying platform.
Показать файл Открыть проект Примеры использования класса

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