コード例 #1
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static unsafe GlfwMonitorPtr[] GetMonitors() {
			int count;
			GlfwMonitorPtr * array = GlfwDelegates.glfwGetMonitors(out count);
			GlfwMonitorPtr[] result = new GlfwMonitorPtr[count];
			for (int i = 0; i < count; ++i) {
				result[i] = array[i];
			}
			return result;
		}
コード例 #2
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static GlfwVidMode[] GetVideoModes(GlfwMonitorPtr monitor) {
			int count;
			GlfwVidMode * array = GlfwDelegates.glfwGetVideoModes(monitor, out count);
			GlfwVidMode[] result = new GlfwVidMode[count];
			for (int i = 0; i < count; ++i) {
				result[i] = array[i];
			}
			return result;
		}
コード例 #3
0
        public static unsafe GlfwMonitorPtr[] GetMonitors()
        {
            int             count;
            GlfwMonitorPtr *array = GlfwDelegates.glfwGetMonitors(out count);

            GlfwMonitorPtr[] result = new GlfwMonitorPtr[count];
            for (int i = 0; i < count; ++i)
            {
                result[i] = array[i];
            }
            return(result);
        }
コード例 #4
0
        public static GlfwVidMode[] GetVideoModes(GlfwMonitorPtr monitor)
        {
            int          count;
            GlfwVidMode *array = GlfwDelegates.glfwGetVideoModes(monitor, out count);

            GlfwVidMode[] result = new GlfwVidMode[count];
            for (int i = 0; i < count; ++i)
            {
                result[i] = array[i];
            }
            return(result);
        }
コード例 #5
0
ファイル: Glfw3.cs プロジェクト: renanyoy/Pencil.Gaming
		public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor) {
            GlfwVidMode* vidMode = GlfwDelegates.glfwGetVideoMode(monitor);
            GlfwVidMode returnMode = new GlfwVidMode {
                RedBits = vidMode->RedBits,
                GreenBits = vidMode->GreenBits,
                BlueBits = vidMode->BlueBits,
                RefreshRate = vidMode->RefreshRate,
                Width = vidMode->Width,
                Height = vidMode->Height
            };
            return returnMode;
		}
コード例 #6
0
ファイル: Glfw3.cs プロジェクト: masums/Pencil.Gaming
        public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor)
        {
            GlfwVidMode *vidMode    = GlfwDelegates.glfwGetVideoMode(monitor);
            GlfwVidMode  returnMode = new GlfwVidMode {
                RedBits     = vidMode->RedBits,
                GreenBits   = vidMode->GreenBits,
                BlueBits    = vidMode->BlueBits,
                RefreshRate = vidMode->RefreshRate,
                Width       = vidMode->Width,
                Height      = vidMode->Height
            };

            return(returnMode);
        }
コード例 #7
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp) {
			GlfwGammaRampInternal rampI;
			GlfwDelegates.glfwGetGammaRamp(monitor, out rampI);
			uint length = rampI.Length;
			ramp = new GlfwGammaRamp();
			ramp.Red = new uint[length];
			ramp.Green = new uint[length];
			ramp.Blue = new uint[length];
			for (int i = 0; i < ramp.Red.Length; ++i) {
				ramp.Red[i] = rampI.Red[i];
			}
			for (int i = 0; i < ramp.Green.Length; ++i) {
				ramp.Green[i] = rampI.Green[i];
			}
			for (int i = 0; i < ramp.Blue.Length; ++i) {
				ramp.Blue[i] = rampI.Blue[i];
			}
		}
コード例 #8
0
        public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp)
        {
            GlfwGammaRampInternal rampI;

            GlfwDelegates.glfwGetGammaRamp(monitor, out rampI);
            uint length = rampI.Length;

            ramp       = new GlfwGammaRamp();
            ramp.Red   = new uint[length];
            ramp.Green = new uint[length];
            ramp.Blue  = new uint[length];
            for (int i = 0; i < ramp.Red.Length; ++i)
            {
                ramp.Red[i] = rampI.Red[i];
            }
            for (int i = 0; i < ramp.Green.Length; ++i)
            {
                ramp.Green[i] = rampI.Green[i];
            }
            for (int i = 0; i < ramp.Blue.Length; ++i)
            {
                ramp.Blue[i] = rampI.Blue[i];
            }
        }
コード例 #9
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp) {
			ramp.Length = (uint)ramp.Red.Length;
			GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
		}
コード例 #10
0
 public static GlfwWindowPtr CreateWindow(int width, int height, string title, GlfwMonitorPtr monitor, GlfwWindowPtr share)
 {
     return(GlfwDelegates.glfwCreateWindow(width, height, title, monitor, share));
 }
コード例 #11
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern void glfwGetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRampInternal ramp);
コード例 #12
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern GlfwWindowPtr glfwCreateWindow(int width, int height, [MarshalAs(UnmanagedType.LPStr)] string title, GlfwMonitorPtr monitor, GlfwWindowPtr share);
コード例 #13
0
 public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor)
 {
     return(GlfwDelegates.glfwGetVideoMode(monitor));
 }
コード例 #14
0
ファイル: Glfw3.cs プロジェクト: AmzBee/Pencil.Gaming
		public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp) {
			GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
		}
コード例 #15
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static void SetGamma(GlfwMonitorPtr monitor, float gamma) {
			GlfwDelegates.glfwSetGamma(monitor, gamma);
		}
コード例 #16
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern void glfwGetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos);
コード例 #17
0
ファイル: Glfw3.cs プロジェクト: AmzBee/Pencil.Gaming
		public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp) {
			GlfwDelegates.glfwGetGammaRamp(monitor, out ramp);
		}
コード例 #18
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor) {
			return GlfwDelegates.glfwGetVideoMode(monitor);
		}
コード例 #19
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static string GetMonitorName(GlfwMonitorPtr monitor) {
			return new string(GlfwDelegates.glfwGetMonitorName(monitor));
		}
コード例 #20
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static void GetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height) {
			GlfwDelegates.glfwGetMonitorPhysicalSize(monitor, out width, out height);
		}
コード例 #21
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static void GetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos) {
			GlfwDelegates.glfwGetMonitorPos(monitor, out xpos, out ypos);
		}
コード例 #22
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern void glfwSetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp);
コード例 #23
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern sbyte *glfwGetMonitorName(GlfwMonitorPtr monitor);
コード例 #24
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern GlfwWindowPtr glfwCreateWindow(int width, int height, [MarshalAs(UnmanagedType.LPStr)] string title, GlfwMonitorPtr monitor, GlfwWindowPtr share);
コード例 #25
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern GlfwVidMode *glfwGetVideoMode(GlfwMonitorPtr monitor);
コード例 #26
0
 public static string GetMonitorName(GlfwMonitorPtr monitor)
 {
     return(new string(GlfwDelegates.glfwGetMonitorName(monitor)));
 }
コード例 #27
0
ファイル: Glfw3.cs プロジェクト: Wonkyth/Pencil.Gaming
		public static GlfwWindowPtr CreateWindow(int width, int height, string title, GlfwMonitorPtr monitor, GlfwWindowPtr share) {
			return GlfwDelegates.glfwCreateWindow(width, height, title, monitor, share);
		}
コード例 #28
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern void glfwGetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height);
コード例 #29
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern void glfwGetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos);
コード例 #30
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern GlfwVidMode *glfwGetVideoModes(GlfwMonitorPtr monitor, out int count);
コード例 #31
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern void glfwGetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height);
コード例 #32
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern void glfwSetGamma(GlfwMonitorPtr monitor, float gamma);
コード例 #33
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern sbyte* glfwGetMonitorName(GlfwMonitorPtr monitor);
コード例 #34
0
ファイル: Glfw3_32.cs プロジェクト: luislasonbra/PixelFarm
 internal static extern void glfwSetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp);
コード例 #35
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern GlfwVidMode* glfwGetVideoModes(GlfwMonitorPtr monitor, out int count);
コード例 #36
0
 public static void SetGamma(GlfwMonitorPtr monitor, float gamma)
 {
     GlfwDelegates.glfwSetGamma(monitor, gamma);
 }
コード例 #37
0
 public static void GetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos)
 {
     GlfwDelegates.glfwGetMonitorPos(monitor, out xpos, out ypos);
 }
コード例 #38
0
 public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp)
 {
     ramp.Length = (uint)ramp.Red.Length;
     GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
 }
コード例 #39
0
 public static string GetMonitorName(GlfwMonitorPtr monitor)
 {
     return(GlfwDelegates.StrFromSbyte(GlfwDelegates.glfwGetMonitorName(monitor)));
 }
コード例 #40
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern GlfwVidMode* glfwGetVideoMode(GlfwMonitorPtr monitor);
コード例 #41
0
 public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp)
 {
     GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
 }
コード例 #42
0
 public static void GetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height)
 {
     GlfwDelegates.glfwGetMonitorPhysicalSize(monitor, out width, out height);
 }
コード例 #43
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern void glfwSetGamma(GlfwMonitorPtr monitor, float gamma);
コード例 #44
0
ファイル: Glfw3_32.cs プロジェクト: prepare/HTML-Renderer
 internal static extern void glfwGetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRampInternal ramp);
コード例 #45
0
 public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp)
 {
     GlfwDelegates.glfwGetGammaRamp(monitor, out ramp);
 }