Skip to content

Instantly share code, notes, and snippets.

View Immanuel-C's full-sized avatar
🎯
Focusing

Immanuel Charles Immanuel-C

🎯
Focusing
  • Ontario, Canada
  • 21:09 (UTC -04:00)
View GitHub Profile
@nickrolfe
nickrolfe / windows_modern_opengl_context.c
Last active April 21, 2025 16:43
Sample code showing how to create a window using a modern OpenGL core profile context without any libraries other than the standard Win32 wglXXX calls.
// Sample code showing how to create a modern OpenGL window and rendering context on Win32.
#include <windows.h>
#include <gl/gl.h>
#include <stdbool.h>
typedef HGLRC WINAPI wglCreateContextAttribsARB_type(HDC hdc, HGLRC hShareContext,
const int *attribList);
wglCreateContextAttribsARB_type *wglCreateContextAttribsARB;
@jasonwhite
jasonwhite / joystick.c
Last active June 24, 2025 13:01
Reads joystick/gamepad events on Linux and displays them.
/**
* Author: Jason White
*
* Description:
* Reads joystick/gamepad events and displays them.
*
* Compile:
* gcc joystick.c -o joystick
*
* Run: