Skip to content

Instantly share code, notes, and snippets.

View LunaTheFoxgirl's full-sized avatar
🦊
こんこん

Luna LunaTheFoxgirl

🦊
こんこん
View GitHub Profile
@icculus
icculus / sdl-vulkan-explanation.cpp
Created September 3, 2017 18:47
SDL vulkan explanation...
/*
Ok, I answered too quickly, and Twitter is terrible for this, so have a gist.
You call this function twice: the first time with a NULL and it just sets
extension_count to the number of strings it plans to give you, so you can
allocate space for them and call the function again.
*/
// (you should check return values for errors in all this, but whatever.)
unsigned int count = 0;
@flibitijibibo
flibitijibibo / flibitPackaging.md
Created June 17, 2016 16:00
Hope you like reading ldd output!

A week ago I was CC'd in on a thread about Linux packaging, and how to avoid doing it the wrong way (i.e. RPM, Deb, etc.). I've always used MojoSetup and I've never forced distributions to do any additional work, but this is still a new concept to a lot of people. Additionally, Amos suggested that I expand on Itch's FNA appendix, so here's a guide on how I package my games.

This is a bit of an expansion on my MAGFest 2016 presentation, which you can find here:

http://www.flibitijibibo.com/magfest2016/

https://www.youtube.com/watch?v=B83CWUh0Log

I would recommend looking at that first! After that, read on...

@v3n
v3n / ogl_osx.md
Last active March 24, 2025 00:49
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active April 2, 2025 15:44
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;