Skip to content

Instantly share code, notes, and snippets.

View flibitijibibo's full-sized avatar

Ethan Lee flibitijibibo

View GitHub Profile
/* gcc -g -o titlebar titlebar.c `sdl2-config --cflags --libs`
* SDL_VIDEODRIVER=wayland ./titlebar
*/
#include <SDL.h>
int main(int argc, char **argv)
{
SDL_Window *window;
SDL_Renderer *renderer;
@flibitijibibo
flibitijibibo / MultiWindow.cs
Created February 8, 2022 17:38
FNA with Multiple Windows
/* FNA MultiWindow Example
* Written by Ethan "flibitijibibo" Lee
* https://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using System;
using SDL2;
@flibitijibibo
flibitijibibo / glon12.md
Last active November 1, 2025 16:44
GLon12 Instructions
@flibitijibibo
flibitijibibo / mojoshader-vkd3d.md
Last active December 17, 2023 04:27
MojoShader HLSL support for vkd3d-shader
@flibitijibibo
flibitijibibo / SpriteBatchTrace.cs
Last active March 27, 2025 19:43
Run this to lazily get an FNA3D_Trace.bin for a SpriteBatch game
using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
class Program : Game
{
static void Main(string[] args)
{
#!/bin/bash
set -ex
function commit_sdk() {
rm -rf Readme.txt steam redistributable_bin
unzip ../steamworks_sdk_1$1.zip
# Changelog
mv sdk/Readme.txt .