Skip to content

Instantly share code, notes, and snippets.

View yanpeng's full-sized avatar
🎯
Focusing

yanpeng

🎯
Focusing
View GitHub Profile
@yanpeng
yanpeng / Source.cpp
Last active April 5, 2022 10:13
Create OpenGL Rendering Context from Scratch (Win32)
// To run this program.
// 1. SUBSYSTEM:WINDOWS
// 2. Link glad.cpp
// 3. Set include directories that includes glad.h and wglext.h
// https://www.khronos.org/opengl/wiki/Creating_an_OpenGL_Context_(WGL)
// https://www.khronos.org/registry/OpenGL/extensions/ARB/WGL_ARB_create_context.txt
#include <Windows.h>
#include <glad/glad.h>
// #include <GL/glext.h> // No use, don't use gl extensions here.
@yanpeng
yanpeng / DL.sh
Created January 31, 2022 11:40 — forked from schnabear/DL.sh
Game Developer Magazine
#!/bin/bash
while read link; do if [ ! -f "$(basename $link)" ]; then wget $link; fi; done < GDMAG.txt