C# Class Pencil.Gaming.Glfw

Exibir arquivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method 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 method

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

DefaultWindowHints() public static method

public static DefaultWindowHints ( ) : void
return void

DestroyWindow() public static method

public static DestroyWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

ExtensionSupported() public static method

public static ExtensionSupported ( string extension ) : bool
extension string
return bool

GetClipboardString() public static method

public static GetClipboardString ( GlfwWindowPtr window ) : string
window GlfwWindowPtr
return string

GetCurrentContext() public static method

public static GetCurrentContext ( ) : GlfwWindowPtr
return GlfwWindowPtr

GetCursorPos() public static method

public static GetCursorPos ( GlfwWindowPtr window, double &xpos, double &ypos ) : void
window GlfwWindowPtr
xpos double
ypos double
return void

GetFramebufferSize() public static method

public static GetFramebufferSize ( GlfwWindowPtr window, int &width, int &height ) : void
window GlfwWindowPtr
width int
height int
return void

GetGammaRamp() public static method

public static GetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
monitor GlfwMonitorPtr
ramp GlfwGammaRamp
return void

GetInputMode() public static method

public static GetInputMode ( GlfwWindowPtr window, InputMode mode ) : int
window GlfwWindowPtr
mode InputMode
return int

GetJoystickAxes() public static method

public static GetJoystickAxes ( Joystick joy ) : float[]
joy Joystick
return float[]

GetJoystickButtons() public static method

public static GetJoystickButtons ( Joystick joy ) : byte[]
joy Joystick
return byte[]

GetJoystickName() public static method

public static GetJoystickName ( Joystick joy ) : string
joy Joystick
return string

GetKey() public static method

public static GetKey ( GlfwWindowPtr window, Key key ) : bool
window GlfwWindowPtr
key Key
return bool

GetMonitorName() public static method

public static GetMonitorName ( GlfwMonitorPtr monitor ) : string
monitor GlfwMonitorPtr
return string

GetMonitorPhysicalSize() public static method

public static GetMonitorPhysicalSize ( GlfwMonitorPtr monitor, int &width, int &height ) : void
monitor GlfwMonitorPtr
width int
height int
return void

GetMonitorPos() public static method

public static GetMonitorPos ( GlfwMonitorPtr monitor, int &xpos, int &ypos ) : void
monitor GlfwMonitorPtr
xpos int
ypos int
return void

GetMonitors() public static method

public static GetMonitors ( ) : Pencil.Gaming.GlfwMonitorPtr[]
return Pencil.Gaming.GlfwMonitorPtr[]

GetMouseButton() public static method

public static GetMouseButton ( GlfwWindowPtr window, MouseButton button ) : bool
window GlfwWindowPtr
button MouseButton
return bool

GetNativePlatformWinHwnd() public static method

public static GetNativePlatformWinHwnd ( GlfwWindowPtr wnd ) : IntPtr
wnd GlfwWindowPtr
return System.IntPtr

GetPrimaryMonitor() public static method

public static GetPrimaryMonitor ( ) : GlfwMonitorPtr
return GlfwMonitorPtr

GetProcAddress() public static method

public static GetProcAddress ( string procname ) : IntPtr
procname string
return System.IntPtr

GetTime() public static method

public static GetTime ( ) : double
return double

GetVersion() public static method

public static GetVersion ( int &major, int &minor, int &rev ) : void
major int
minor int
rev int
return void

GetVersionString() public static method

public static GetVersionString ( ) : string
return string

GetVideoMode() public static method

public static GetVideoMode ( GlfwMonitorPtr monitor ) : GlfwVidMode
monitor GlfwMonitorPtr
return GlfwVidMode

GetVideoModes() public static method

public static GetVideoModes ( GlfwMonitorPtr monitor ) : Pencil.Gaming.GlfwVidMode[]
monitor GlfwMonitorPtr
return Pencil.Gaming.GlfwVidMode[]

GetWindowAttrib() public static method

public static GetWindowAttrib ( GlfwWindowPtr window, WindowAttrib param ) : int
window GlfwWindowPtr
param WindowAttrib
return int

GetWindowAttrib() public static method

public static GetWindowAttrib ( GlfwWindowPtr window, WindowHint param ) : int
window GlfwWindowPtr
param WindowHint
return int

GetWindowMonitor() public static method

public static GetWindowMonitor ( GlfwWindowPtr window ) : GlfwMonitorPtr
window GlfwWindowPtr
return GlfwMonitorPtr

GetWindowPos() public static method

public static GetWindowPos ( GlfwWindowPtr window, int &xpos, int &ypos ) : void
window GlfwWindowPtr
xpos int
ypos int
return void

GetWindowSize() public static method

public static GetWindowSize ( GlfwWindowPtr window, int &width, int &height ) : void
window GlfwWindowPtr
width int
height int
return void

GetWindowUserPointer() public static method

public static GetWindowUserPointer ( GlfwWindowPtr window ) : IntPtr
window GlfwWindowPtr
return System.IntPtr

HideWindow() public static method

public static HideWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

IconifyWindow() public static method

public static IconifyWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

Init() public static method

public static Init ( ) : bool
return bool

JoystickPresent() public static method

public static JoystickPresent ( Joystick joy ) : bool
joy Joystick
return bool

MakeContextCurrent() public static method

public static MakeContextCurrent ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

PollEvents() public static method

public static PollEvents ( ) : void
return void

RestoreWindow() public static method

public static RestoreWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

SetCharCallback() public static method

public static SetCharCallback ( GlfwWindowPtr window, GlfwCharFun cbfun ) : GlfwCharFun
window GlfwWindowPtr
cbfun GlfwCharFun
return GlfwCharFun

SetClipboardString() public static method

public static SetClipboardString ( GlfwWindowPtr window, string @string ) : void
window GlfwWindowPtr
@string string
return void

SetCursorEnterCallback() public static method

public static SetCursorEnterCallback ( GlfwWindowPtr window, GlfwCursorEnterFun cbfun ) : GlfwCursorEnterFun
window GlfwWindowPtr
cbfun GlfwCursorEnterFun
return GlfwCursorEnterFun

SetCursorPos() public static method

public static SetCursorPos ( GlfwWindowPtr window, double xpos, double ypos ) : void
window GlfwWindowPtr
xpos double
ypos double
return void

SetCursorPosCallback() public static method

public static SetCursorPosCallback ( GlfwWindowPtr window, GlfwCursorPosFun cbfun ) : GlfwCursorPosFun
window GlfwWindowPtr
cbfun GlfwCursorPosFun
return GlfwCursorPosFun

SetErrorCallback() public static method

public static SetErrorCallback ( GlfwErrorFun cbfun ) : GlfwErrorFun
cbfun GlfwErrorFun
return GlfwErrorFun

SetFramebufferSizeCallback() public static method

public static SetFramebufferSizeCallback ( GlfwWindowPtr window, GlfwFramebufferSizeFun cbfun ) : GlfwFramebufferSizeFun
window GlfwWindowPtr
cbfun GlfwFramebufferSizeFun
return GlfwFramebufferSizeFun

SetGamma() public static method

public static SetGamma ( GlfwMonitorPtr monitor, float gamma ) : void
monitor GlfwMonitorPtr
gamma float
return void

SetGammaRamp() public static method

public static SetGammaRamp ( GlfwMonitorPtr monitor, GlfwGammaRamp &ramp ) : void
monitor GlfwMonitorPtr
ramp GlfwGammaRamp
return void

SetInputMode() public static method

public static SetInputMode ( GlfwWindowPtr window, InputMode mode, CursorMode value ) : void
window GlfwWindowPtr
mode InputMode
value CursorMode
return void

SetKeyCallback() public static method

public static SetKeyCallback ( GlfwWindowPtr window, GlfwKeyFun cbfun ) : GlfwKeyFun
window GlfwWindowPtr
cbfun GlfwKeyFun
return GlfwKeyFun

SetMouseButtonCallback() public static method

public static SetMouseButtonCallback ( GlfwWindowPtr window, GlfwMouseButtonFun cbfun ) : GlfwMouseButtonFun
window GlfwWindowPtr
cbfun GlfwMouseButtonFun
return GlfwMouseButtonFun

SetScrollCallback() public static method

public static SetScrollCallback ( GlfwWindowPtr window, GlfwScrollFun cbfun ) : GlfwScrollFun
window GlfwWindowPtr
cbfun GlfwScrollFun
return GlfwScrollFun

SetTime() public static method

public static SetTime ( double time ) : void
time double
return void

SetWindowCloseCallback() public static method

public static SetWindowCloseCallback ( GlfwWindowPtr window, GlfwWindowCloseFun cbfun ) : GlfwWindowCloseFun
window GlfwWindowPtr
cbfun GlfwWindowCloseFun
return GlfwWindowCloseFun

SetWindowFocusCallback() public static method

public static SetWindowFocusCallback ( GlfwWindowPtr window, GlfwWindowFocusFun cbfun ) : GlfwWindowFocusFun
window GlfwWindowPtr
cbfun GlfwWindowFocusFun
return GlfwWindowFocusFun

SetWindowIconifyCallback() public static method

public static SetWindowIconifyCallback ( GlfwWindowPtr window, GlfwWindowIconifyFun cbfun ) : GlfwWindowIconifyFun
window GlfwWindowPtr
cbfun GlfwWindowIconifyFun
return GlfwWindowIconifyFun

SetWindowPos() public static method

public static SetWindowPos ( GlfwWindowPtr window, int xpos, int ypos ) : void
window GlfwWindowPtr
xpos int
ypos int
return void

SetWindowPosCallback() public static method

public static SetWindowPosCallback ( GlfwWindowPtr window, GlfwWindowPosFun cbfun ) : GlfwWindowPosFun
window GlfwWindowPtr
cbfun GlfwWindowPosFun
return GlfwWindowPosFun

SetWindowRefreshCallback() public static method

public static SetWindowRefreshCallback ( GlfwWindowPtr window, GlfwWindowRefreshFun cbfun ) : GlfwWindowRefreshFun
window GlfwWindowPtr
cbfun GlfwWindowRefreshFun
return GlfwWindowRefreshFun

SetWindowShouldClose() public static method

public static SetWindowShouldClose ( GlfwWindowPtr window, bool value ) : void
window GlfwWindowPtr
value bool
return void

SetWindowSize() public static method

public static SetWindowSize ( GlfwWindowPtr window, int width, int height ) : void
window GlfwWindowPtr
width int
height int
return void

SetWindowSizeCallback() public static method

public static SetWindowSizeCallback ( GlfwWindowPtr window, GlfwWindowSizeFun cbfun ) : GlfwWindowSizeFun
window GlfwWindowPtr
cbfun GlfwWindowSizeFun
return GlfwWindowSizeFun

SetWindowTitle() public static method

public static SetWindowTitle ( GlfwWindowPtr window, string title ) : void
window GlfwWindowPtr
title string
return void

SetWindowUserPointer() public static method

public static SetWindowUserPointer ( GlfwWindowPtr window, IntPtr pointer ) : void
window GlfwWindowPtr
pointer System.IntPtr
return void

ShowWindow() public static method

public static ShowWindow ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

SwapBuffers() public static method

public static SwapBuffers ( GlfwWindowPtr window ) : void
window GlfwWindowPtr
return void

SwapInterval() public static method

public static SwapInterval ( int interval ) : void
interval int
return void

Terminate() public static method

public static Terminate ( ) : void
return void

WaitEvents() public static method

public static WaitEvents ( ) : void
return void

WindowHint() public static method

public static WindowHint ( WindowHint target, int hint ) : void
target WindowHint
hint int
return void

WindowShouldClose() public static method

public static WindowShouldClose ( GlfwWindowPtr window ) : bool
window GlfwWindowPtr
return bool