Delete OpenGL.fn

This commit is contained in:
Nexoniarz 2026-10-09 10:10:47 +02:00 • committed by GitHub
commit ca1d938087
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}