Skip to content

Instantly share code, notes, and snippets.

View GrumpyLion's full-sized avatar
💭
Only purpose of any code is to transform data

Lion Schitik GrumpyLion

💭
Only purpose of any code is to transform data
View GitHub Profile
@GrumpyLion
GrumpyLion / win32_opengl_demo.odin
Last active November 22, 2024 07:03
OpenGL and win32 window creation with Odin
package main
// This is how you can manually initialize a window and OpenGL context on windows, instead of using SDL or GLFW.
// Also renders a colorful quad onto the screen.
// I made this as an exercise and getting into Odin.
// This is my first "complete" odin program, so there's probably much better ways of doing this :D
import "base:runtime"
import "core:fmt"
import "core:c"