Beispiel #1
0
 public static void SetWindowSize(GlfwWindow window, int width, int height)
 {
     GlfwCore.glfwSetWindowSize(window, width, height);
 }
Beispiel #2
0
 public static void SetGammaRamp(GlfwMonitor monitor, ref GlfwGammaRamp ramp)
 {
     ramp.Length = (uint)ramp.Red.Length;
     GlfwCore.glfwSetGammaRamp(monitor, ref ramp);
 }
Beispiel #3
0
 public static void SetWindowPos(GlfwWindow window, int xpos, int ypos)
 {
     GlfwCore.glfwSetWindowPos(window, xpos, ypos);
 }
Beispiel #4
0
 public static void HideWindow(GlfwWindow window)
 {
     GlfwCore.glfwHideWindow(window);
 }
Beispiel #5
0
 public static void FocusWindow(GlfwWindow window)
 {
     GlfwCore.glfwFocusWindow(window);
 }
Beispiel #6
0
 public static void IconifyWindow(GlfwWindow window)
 {
     GlfwCore.glfwIconifyWindow(window);
 }
Beispiel #7
0
 public static void MaximizeWindow(GlfwWindow window)
 {
     GlfwCore.glfwMaximizeWindow(window);
 }
Beispiel #8
0
 public static void DestroyWindow(GlfwWindow window)
 {
     GlfwCore.glfwDestroyWindow(window);
 }
Beispiel #9
0
 public static bool WindowShouldClose(GlfwWindow window)
 {
     return(GlfwCore.glfwWindowShouldClose(window) == 1);
 }
Beispiel #10
0
 public static void WindowHint(WindowAttrib target, bool hint)
 {
     GlfwCore.glfwWindowHint((int)target, hint ? 1 : 0);
 }
Beispiel #11
0
 public static GlfwWindow CreateWindow(int width, int height, string title, GlfwMonitor monitor, GlfwWindow share)
 {
     return(GlfwCore.glfwCreateWindow(width, height, title, monitor, share));
 }
Beispiel #12
0
 public static void WindowHint(WindowAttrib target, int hint)
 {
     GlfwCore.glfwWindowHint((int)target, hint);
 }
Beispiel #13
0
#pragma warning disable 0414

        public static bool Init()
        {
            return(GlfwCore.glfwInit() == 1);
        }
Beispiel #14
0
 public static void DefaultWindowHints()
 {
     GlfwCore.glfwDefaultWindowHints();
 }
Beispiel #15
0
 public static void GetFramebufferSize(GlfwWindow window, out int width, out int height)
 {
     GlfwCore.glfwGetFramebufferSize(window, out width, out height);
 }
Beispiel #16
0
 public static void SetWindowShouldClose(GlfwWindow window, bool value)
 {
     GlfwCore.glfwSetWindowShouldClose(window, value ? 1 : 0);
 }
Beispiel #17
0
 public static void GetWindowFrameSize(GlfwWindow window, out int left, out int top, out int right,
                                       out int bottom)
 {
     GlfwCore.glfwGetWindowFrameSize(window, out left, out top, out right, out bottom);
 }
Beispiel #18
0
 public static void SetWindowTitle(GlfwWindow window, string title)
 {
     GlfwCore.glfwSetWindowTitle(window, title);
 }
Beispiel #19
0
 public static void RestoreWindow(GlfwWindow window)
 {
     GlfwCore.glfwRestoreWindow(window);
 }
Beispiel #20
0
 public static void SetWindowIcon(GlfwWindow window, int count, GlfwImage[] images)
 {
     GlfwCore.glfwSetWindowIcon(window, count, images);
 }
Beispiel #21
0
 public static void ShowWindow(GlfwWindow window)
 {
     GlfwCore.glfwShowWindow(window);
 }
Beispiel #22
0
 public static void GetWindowPos(GlfwWindow window, out int xpos, out int ypos)
 {
     GlfwCore.glfwGetWindowPos(window, out xpos, out ypos);
 }
Beispiel #23
0
 public static void GetVersion(out int major, out int minor, out int rev)
 {
     GlfwCore.glfwGetVersion(out major, out minor, out rev);
 }
Beispiel #24
0
 public static void Terminate()
 {
     GlfwCore.glfwTerminate();
 }
Beispiel #25
0
 public static GlfwMonitor GetWindowMonitor(GlfwWindow window)
 {
     return(GlfwCore.glfwGetWindowMonitor(window));
 }
Beispiel #26
0
 public static void SetGamma(GlfwMonitor monitor, float gamma)
 {
     GlfwCore.glfwSetGamma(monitor, gamma);
 }