示例#1
0
        private void InitialiseWindow()
        {
            Glfw3.glfwInit();

            Glfw3.glfwWindowHint(0x00022001, 0);
            this.window = Glfw3.glfwCreateWindow(SurfaceWidth, SurfaceHeight, "Vulkan", IntPtr.Zero, IntPtr.Zero);

            this.windowSizeChanged = (x, y, z) => this.RecreateSwapChain();
            Glfw3.glfwSetWindowSizeCallback(this.window, this.windowSizeChanged);
        }
示例#2
0
        public override void Initialise(Game game)
        {
            Glfw3.glfwInit();

            Glfw3.glfwWindowHint(0x00022001, 0);
            this.WindowHandle = Glfw3.glfwCreateWindow(1280, 720, this.options.Title, IntPtr.Zero, IntPtr.Zero);

            this.windowSizeChanged = this.OnWindowSizeChanged;
            Glfw3.glfwSetWindowSizeCallback(this.WindowHandle, this.windowSizeChanged);

            this.game = game;
        }