C# Class Pencil.Gaming.Glfw

Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Méthode Description
CreateWindow ( int width, int height, string title, GlfwMonitorPtr monitor, GlfwWindowPtr share ) : GlfwWindowPtr
DefaultWindowHints ( ) : void
DestroyWindow ( GlfwWindowPtr window ) : void
ExtensionSupported ( string extension ) : bool
GetClipboardString ( GlfwWindowPtr window ) : string
GetCurrentContext ( ) : GlfwWindowPtr
GetCursorPos ( GlfwWindowPtr window, double &xpos, double &ypos ) : void
GetFramebufferSize ( GlfwWindowPtr window, int &width, int &height ) : void
GetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
GetInputMode ( GlfwWindowPtr window, InputMode mode ) : int
GetJoystickAxes ( Joystick joy ) : float[]
GetJoystickButtons ( Joystick joy ) : byte[]
GetJoystickName ( Joystick joy ) : string
GetKey ( GlfwWindowPtr window, Key key ) : bool
GetMonitorName ( GlfwMonitorPtr monitor ) : string
GetMonitorPhysicalSize ( GlfwMonitorPtr monitor, int &width, int &height ) : void
GetMonitorPos ( GlfwMonitorPtr monitor, int &xpos, int &ypos ) : void
GetMonitors ( ) : Pencil.Gaming.GlfwMonitorPtr[]
GetMouseButton ( GlfwWindowPtr window, MouseButton button ) : bool
GetNativePlatformWinHwnd ( GlfwWindowPtr wnd ) : IntPtr
GetPrimaryMonitor ( ) : GlfwMonitorPtr
GetProcAddress ( string procname ) : IntPtr
GetTime ( ) : double
GetVersion ( int &major, int &minor, int &rev ) : void
GetVersionString ( ) : string
GetVideoMode ( GlfwMonitorPtr monitor ) : GlfwVidMode
GetVideoModes ( GlfwMonitorPtr monitor ) : Pencil.Gaming.GlfwVidMode[]
GetWindowAttrib ( GlfwWindowPtr window, WindowAttrib param ) : int
GetWindowAttrib ( GlfwWindowPtr window, WindowHint param ) : int
GetWindowMonitor ( GlfwWindowPtr window ) : GlfwMonitorPtr
GetWindowPos ( GlfwWindowPtr window, int &xpos, int &ypos ) : void
GetWindowSize ( GlfwWindowPtr window, int &width, int &height ) : void
GetWindowUserPointer ( GlfwWindowPtr window ) : IntPtr
HideWindow ( GlfwWindowPtr window ) : void
IconifyWindow ( GlfwWindowPtr window ) : void
Init ( ) : bool
JoystickPresent ( Joystick joy ) : bool
MakeContextCurrent ( GlfwWindowPtr window ) : void
PollEvents ( ) : void
RestoreWindow ( GlfwWindowPtr window ) : void
SetCharCallback ( GlfwWindowPtr window, GlfwCharFun cbfun ) : GlfwCharFun
SetClipboardString ( GlfwWindowPtr window, string @string ) : void
SetCursorEnterCallback ( GlfwWindowPtr window, GlfwCursorEnterFun cbfun ) : GlfwCursorEnterFun
SetCursorPos ( GlfwWindowPtr window, double xpos, double ypos ) : void
SetCursorPosCallback ( GlfwWindowPtr window, GlfwCursorPosFun cbfun ) : GlfwCursorPosFun
SetErrorCallback ( GlfwErrorFun cbfun ) : GlfwErrorFun
SetFramebufferSizeCallback ( GlfwWindowPtr window, GlfwFramebufferSizeFun cbfun ) : GlfwFramebufferSizeFun
SetGamma ( GlfwMonitorPtr monitor, float gamma ) : void
SetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
SetInputMode ( GlfwWindowPtr window, InputMode mode, CursorMode value ) : void
SetKeyCallback ( GlfwWindowPtr window, GlfwKeyFun cbfun ) : GlfwKeyFun
SetMouseButtonCallback ( GlfwWindowPtr window, GlfwMouseButtonFun cbfun ) : GlfwMouseButtonFun
SetScrollCallback ( GlfwWindowPtr window, GlfwScrollFun cbfun ) : GlfwScrollFun
SetTime ( double time ) : void
SetWindowCloseCallback ( GlfwWindowPtr window, GlfwWindowCloseFun cbfun ) : GlfwWindowCloseFun
SetWindowFocusCallback ( GlfwWindowPtr window, GlfwWindowFocusFun cbfun ) : GlfwWindowFocusFun
SetWindowIconifyCallback ( GlfwWindowPtr window, GlfwWindowIconifyFun cbfun ) : GlfwWindowIconifyFun
SetWindowPos ( GlfwWindowPtr window, int xpos, int ypos ) : void
SetWindowPosCallback ( GlfwWindowPtr window, GlfwWindowPosFun cbfun ) : GlfwWindowPosFun
SetWindowRefreshCallback ( GlfwWindowPtr window, GlfwWindowRefreshFun cbfun ) : GlfwWindowRefreshFun
SetWindowShouldClose ( GlfwWindowPtr window, bool value ) : void
SetWindowSize ( GlfwWindowPtr window, int width, int height ) : void
SetWindowSizeCallback ( GlfwWindowPtr window, GlfwWindowSizeFun cbfun ) : GlfwWindowSizeFun
SetWindowTitle ( GlfwWindowPtr window, string title ) : void
SetWindowUserPointer ( GlfwWindowPtr window, IntPtr pointer ) : void
ShowWindow ( GlfwWindowPtr window ) : void
SwapBuffers ( GlfwWindowPtr window ) : void
SwapInterval ( int interval ) : void
Terminate ( ) : void
WaitEvents ( ) : void
WindowHint ( WindowHint target, int hint ) : void
WindowShouldClose ( GlfwWindowPtr window ) : bool

Method Details

CreateWindow() public static méthode

public static CreateWindow ( int width, int height, string title, GlfwMonitorPtr monitor, GlfwWindowPtr share ) : GlfwWindowPtr
width int
height int
title string
monitor GlfwMonitorPtr
share GlfwWindowPtr
Résultat GlfwWindowPtr

DefaultWindowHints() public static méthode

public static DefaultWindowHints ( ) : void
Résultat void

DestroyWindow() public static méthode

public static DestroyWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

ExtensionSupported() public static méthode

public static ExtensionSupported ( string extension ) : bool
extension string
Résultat bool

GetClipboardString() public static méthode

public static GetClipboardString ( GlfwWindowPtr window ) : string
window GlfwWindowPtr
Résultat string

GetCurrentContext() public static méthode

public static GetCurrentContext ( ) : GlfwWindowPtr
Résultat GlfwWindowPtr

GetCursorPos() public static méthode

public static GetCursorPos ( GlfwWindowPtr window, double &xpos, double &ypos ) : void
window GlfwWindowPtr
xpos double
ypos double
Résultat void

GetFramebufferSize() public static méthode

public static GetFramebufferSize ( GlfwWindowPtr window, int &width, int &height ) : void
window GlfwWindowPtr
width int
height int
Résultat void

GetGammaRamp() public static méthode

public static GetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
monitor GlfwMonitorPtr
ramp GlfwGammaRamp
Résultat void

GetInputMode() public static méthode

public static GetInputMode ( GlfwWindowPtr window, InputMode mode ) : int
window GlfwWindowPtr
mode InputMode
Résultat int

GetJoystickAxes() public static méthode

public static GetJoystickAxes ( Joystick joy ) : float[]
joy Joystick
Résultat float[]

GetJoystickButtons() public static méthode

public static GetJoystickButtons ( Joystick joy ) : byte[]
joy Joystick
Résultat byte[]

GetJoystickName() public static méthode

public static GetJoystickName ( Joystick joy ) : string
joy Joystick
Résultat string

GetKey() public static méthode

public static GetKey ( GlfwWindowPtr window, Key key ) : bool
window GlfwWindowPtr
key Key
Résultat bool

GetMonitorName() public static méthode

public static GetMonitorName ( GlfwMonitorPtr monitor ) : string
monitor GlfwMonitorPtr
Résultat string

GetMonitorPhysicalSize() public static méthode

public static GetMonitorPhysicalSize ( GlfwMonitorPtr monitor, int &width, int &height ) : void
monitor GlfwMonitorPtr
width int
height int
Résultat void

GetMonitorPos() public static méthode

public static GetMonitorPos ( GlfwMonitorPtr monitor, int &xpos, int &ypos ) : void
monitor GlfwMonitorPtr
xpos int
ypos int
Résultat void

GetMonitors() public static méthode

public static GetMonitors ( ) : Pencil.Gaming.GlfwMonitorPtr[]
Résultat Pencil.Gaming.GlfwMonitorPtr[]

GetMouseButton() public static méthode

public static GetMouseButton ( GlfwWindowPtr window, MouseButton button ) : bool
window GlfwWindowPtr
button MouseButton
Résultat bool

GetNativePlatformWinHwnd() public static méthode

public static GetNativePlatformWinHwnd ( GlfwWindowPtr wnd ) : IntPtr
wnd GlfwWindowPtr
Résultat System.IntPtr

GetPrimaryMonitor() public static méthode

public static GetPrimaryMonitor ( ) : GlfwMonitorPtr
Résultat GlfwMonitorPtr

GetProcAddress() public static méthode

public static GetProcAddress ( string procname ) : IntPtr
procname string
Résultat System.IntPtr

GetTime() public static méthode

public static GetTime ( ) : double
Résultat double

GetVersion() public static méthode

public static GetVersion ( int &major, int &minor, int &rev ) : void
major int
minor int
rev int
Résultat void

GetVersionString() public static méthode

public static GetVersionString ( ) : string
Résultat string

GetVideoMode() public static méthode

public static GetVideoMode ( GlfwMonitorPtr monitor ) : GlfwVidMode
monitor GlfwMonitorPtr
Résultat GlfwVidMode

GetVideoModes() public static méthode

public static GetVideoModes ( GlfwMonitorPtr monitor ) : Pencil.Gaming.GlfwVidMode[]
monitor GlfwMonitorPtr
Résultat Pencil.Gaming.GlfwVidMode[]

GetWindowAttrib() public static méthode

public static GetWindowAttrib ( GlfwWindowPtr window, WindowAttrib param ) : int
window GlfwWindowPtr
param WindowAttrib
Résultat int

GetWindowAttrib() public static méthode

public static GetWindowAttrib ( GlfwWindowPtr window, WindowHint param ) : int
window GlfwWindowPtr
param WindowHint
Résultat int

GetWindowMonitor() public static méthode

public static GetWindowMonitor ( GlfwWindowPtr window ) : GlfwMonitorPtr
window GlfwWindowPtr
Résultat GlfwMonitorPtr

GetWindowPos() public static méthode

public static GetWindowPos ( GlfwWindowPtr window, int &xpos, int &ypos ) : void
window GlfwWindowPtr
xpos int
ypos int
Résultat void

GetWindowSize() public static méthode

public static GetWindowSize ( GlfwWindowPtr window, int &width, int &height ) : void
window GlfwWindowPtr
width int
height int
Résultat void

GetWindowUserPointer() public static méthode

public static GetWindowUserPointer ( GlfwWindowPtr window ) : IntPtr
window GlfwWindowPtr
Résultat System.IntPtr

HideWindow() public static méthode

public static HideWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

IconifyWindow() public static méthode

public static IconifyWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

Init() public static méthode

public static Init ( ) : bool
Résultat bool

JoystickPresent() public static méthode

public static JoystickPresent ( Joystick joy ) : bool
joy Joystick
Résultat bool

MakeContextCurrent() public static méthode

public static MakeContextCurrent ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

PollEvents() public static méthode

public static PollEvents ( ) : void
Résultat void

RestoreWindow() public static méthode

public static RestoreWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

SetCharCallback() public static méthode

public static SetCharCallback ( GlfwWindowPtr window, GlfwCharFun cbfun ) : GlfwCharFun
window GlfwWindowPtr
cbfun GlfwCharFun
Résultat GlfwCharFun

SetClipboardString() public static méthode

public static SetClipboardString ( GlfwWindowPtr window, string @string ) : void
window GlfwWindowPtr
@string string
Résultat void

SetCursorEnterCallback() public static méthode

public static SetCursorEnterCallback ( GlfwWindowPtr window, GlfwCursorEnterFun cbfun ) : GlfwCursorEnterFun
window GlfwWindowPtr
cbfun GlfwCursorEnterFun
Résultat GlfwCursorEnterFun

SetCursorPos() public static méthode

public static SetCursorPos ( GlfwWindowPtr window, double xpos, double ypos ) : void
window GlfwWindowPtr
xpos double
ypos double
Résultat void

SetCursorPosCallback() public static méthode

public static SetCursorPosCallback ( GlfwWindowPtr window, GlfwCursorPosFun cbfun ) : GlfwCursorPosFun
window GlfwWindowPtr
cbfun GlfwCursorPosFun
Résultat GlfwCursorPosFun

SetErrorCallback() public static méthode

public static SetErrorCallback ( GlfwErrorFun cbfun ) : GlfwErrorFun
cbfun GlfwErrorFun
Résultat GlfwErrorFun

SetFramebufferSizeCallback() public static méthode

public static SetFramebufferSizeCallback ( GlfwWindowPtr window, GlfwFramebufferSizeFun cbfun ) : GlfwFramebufferSizeFun
window GlfwWindowPtr
cbfun GlfwFramebufferSizeFun
Résultat GlfwFramebufferSizeFun

SetGamma() public static méthode

public static SetGamma ( GlfwMonitorPtr monitor, float gamma ) : void
monitor GlfwMonitorPtr
gamma float
Résultat void

SetGammaRamp() public static méthode

public static SetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
monitor GlfwMonitorPtr
ramp GlfwGammaRamp
Résultat void

SetInputMode() public static méthode

public static SetInputMode ( GlfwWindowPtr window, InputMode mode, CursorMode value ) : void
window GlfwWindowPtr
mode InputMode
value CursorMode
Résultat void

SetKeyCallback() public static méthode

public static SetKeyCallback ( GlfwWindowPtr window, GlfwKeyFun cbfun ) : GlfwKeyFun
window GlfwWindowPtr
cbfun GlfwKeyFun
Résultat GlfwKeyFun

SetMouseButtonCallback() public static méthode

public static SetMouseButtonCallback ( GlfwWindowPtr window, GlfwMouseButtonFun cbfun ) : GlfwMouseButtonFun
window GlfwWindowPtr
cbfun GlfwMouseButtonFun
Résultat GlfwMouseButtonFun

SetScrollCallback() public static méthode

public static SetScrollCallback ( GlfwWindowPtr window, GlfwScrollFun cbfun ) : GlfwScrollFun
window GlfwWindowPtr
cbfun GlfwScrollFun
Résultat GlfwScrollFun

SetTime() public static méthode

public static SetTime ( double time ) : void
time double
Résultat void

SetWindowCloseCallback() public static méthode

public static SetWindowCloseCallback ( GlfwWindowPtr window, GlfwWindowCloseFun cbfun ) : GlfwWindowCloseFun
window GlfwWindowPtr
cbfun GlfwWindowCloseFun
Résultat GlfwWindowCloseFun

SetWindowFocusCallback() public static méthode

public static SetWindowFocusCallback ( GlfwWindowPtr window, GlfwWindowFocusFun cbfun ) : GlfwWindowFocusFun
window GlfwWindowPtr
cbfun GlfwWindowFocusFun
Résultat GlfwWindowFocusFun

SetWindowIconifyCallback() public static méthode

public static SetWindowIconifyCallback ( GlfwWindowPtr window, GlfwWindowIconifyFun cbfun ) : GlfwWindowIconifyFun
window GlfwWindowPtr
cbfun GlfwWindowIconifyFun
Résultat GlfwWindowIconifyFun

SetWindowPos() public static méthode

public static SetWindowPos ( GlfwWindowPtr window, int xpos, int ypos ) : void
window GlfwWindowPtr
xpos int
ypos int
Résultat void

SetWindowPosCallback() public static méthode

public static SetWindowPosCallback ( GlfwWindowPtr window, GlfwWindowPosFun cbfun ) : GlfwWindowPosFun
window GlfwWindowPtr
cbfun GlfwWindowPosFun
Résultat GlfwWindowPosFun

SetWindowRefreshCallback() public static méthode

public static SetWindowRefreshCallback ( GlfwWindowPtr window, GlfwWindowRefreshFun cbfun ) : GlfwWindowRefreshFun
window GlfwWindowPtr
cbfun GlfwWindowRefreshFun
Résultat GlfwWindowRefreshFun

SetWindowShouldClose() public static méthode

public static SetWindowShouldClose ( GlfwWindowPtr window, bool value ) : void
window GlfwWindowPtr
value bool
Résultat void

SetWindowSize() public static méthode

public static SetWindowSize ( GlfwWindowPtr window, int width, int height ) : void
window GlfwWindowPtr
width int
height int
Résultat void

SetWindowSizeCallback() public static méthode

public static SetWindowSizeCallback ( GlfwWindowPtr window, GlfwWindowSizeFun cbfun ) : GlfwWindowSizeFun
window GlfwWindowPtr
cbfun GlfwWindowSizeFun
Résultat GlfwWindowSizeFun

SetWindowTitle() public static méthode

public static SetWindowTitle ( GlfwWindowPtr window, string title ) : void
window GlfwWindowPtr
title string
Résultat void

SetWindowUserPointer() public static méthode

public static SetWindowUserPointer ( GlfwWindowPtr window, IntPtr pointer ) : void
window GlfwWindowPtr
pointer System.IntPtr
Résultat void

ShowWindow() public static méthode

public static ShowWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

SwapBuffers() public static méthode

public static SwapBuffers ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
Résultat void

SwapInterval() public static méthode

public static SwapInterval ( int interval ) : void
interval int
Résultat void

Terminate() public static méthode

public static Terminate ( ) : void
Résultat void

WaitEvents() public static méthode

public static WaitEvents ( ) : void
Résultat void

WindowHint() public static méthode

public static WindowHint ( WindowHint target, int hint ) : void
target WindowHint
hint int
Résultat void

WindowShouldClose() public static méthode

public static WindowShouldClose ( GlfwWindowPtr window ) : bool
window GlfwWindowPtr
Résultat bool