mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
Delete OpenGL.fn
This commit is contained in:
parent
b872be3176
commit
ca1d938087
1 changed files with 0 additions and 29 deletions
|
|
@ -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()
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue