Skip to content

Instantly share code, notes, and snippets.

View erfg12's full-sized avatar
🏠
Working from home

Jacob Fliss erfg12

🏠
Working from home
View GitHub Profile
@erfg12
erfg12 / main.cpp
Created May 11, 2023 16:39
[Episode 9] [Code] First OpenGL Triangle - Modern OpenGL - Mike Shah
#include <SDL.h>
#include <glad/glad.h>
#include <iostream>
#include <vector>
int gScreenWidth = 640;
int gScreenHeight = 480;
int quit = 0;
@erfg12
erfg12 / build.sh
Created September 18, 2025 14:49
Bundle SDL game MacOS app, code sign and make dmg for distribution
#!/bin/bash
# build_sdl_app.sh
# Builds SharkShark.app bundle (no signing)
# Assumes:
# - Folder "SharkShark" next to this script
# - Icon file "SharkShark.icns" next to this script
# - Executable SharkShark inside "SharkShark/"
# - SDL frameworks inside "SharkShark/"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"