From ca1d93808746cb0af7bad8baca70d136c5bfe8f7 Mon Sep 17 00:00:00 2001 From: Nexoniarz Date: Fri, 9 Oct 2026 10:10:47 +0200 Subject: [PATCH] Delete OpenGL.fn --- examples/OpenGL.fn | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 examples/OpenGL.fn diff --git a/examples/OpenGL.fn b/examples/OpenGL.fn deleted file mode 100644 index a9afb95..0000000 --- a/examples/OpenGL.fn +++ /dev/null @@ -1,29 +0,0 @@ -import "GLFW/glfw3.h" - -fn main() { - if glfwInit() == 0 { - print("Błąd: Nie udało się zainicjalizować GLFW!") - return - } - - win := glfwCreateWindow(800, 600, "lukas", null, null) - - if win == null { - print("Błąd: Nie udało się stworzyć okna!") - glfwTerminate() - return - } - - glfwMakeContextCurrent(win) - - while glfwWindowShouldClose(win) == 0 { - // 1. Obsługa klawiatury/myszki - glfwPollEvents() - - // 2. Podmiana bufora (wyświetlenie narysowanej klatki) - glfwSwapBuffers(win) - } - - glfwDestroyWindow(win) - glfwTerminate() -}