Skip to content

Instantly share code, notes, and snippets.

kortham@Turing ~/projects/PencilAndy/Pencil.Gaming$ file natives*/*
natives32-glfw2/glfw.dll: PE32 executable for MS Windows (DLL) (console) Intel 80386 32-bit
natives32-glfw2/libglfw.dylib: Mach-O dynamically linked shared library i386
natives32-glfw2/libglfw.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
natives32-glfw2/liblua.dylib: Mach-O dynamically linked shared library i386
natives32-glfw2/liblua.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
natives32-glfw2/libopenal.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
natives32-glfw2/lua.dll: PE32 executable for MS Windows (DLL) (console) Intel 80386 32-bit
natives32-glfw2/openal32.dll: PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit
natives32-glfw2/wrap_oal.dll: PE32 executable for MS Windows (DLL) (GUI) Intel 80386
Core engine classes
90 LOM/engine/Cubemap.cs <---- derives from Texture.cs
140 LOM/engine/FullScreenEffect.cs
56 LOM/engine/GameObject.cs <---- Basic GameObject, or entity.
242 LOM/engine/GameState.cs <---- Base class game state, manage objects, time, gameloop, input, matrix
17 LOM/engine/Input.cs
104 LOM/engine/Log.cs
83 LOM/engine/Main.cs
391 LOM/engine/Material.cs <---- Materials = shader, textures, and uniforms.
148 LOM/engine/RenderQueue.cs <---- Automatic batching and depth sorting.
@andykorth
andykorth / gist:bf8e4509402c1f090c1c
Created April 30, 2014 18:48
Live drawing of FFT data in Unity3D
public AudioSource audioSauce;
public string CurrentAudioInput = "none";
int deviceNum = 0;
void Start()
{
string[] inputDevices = new string[Microphone.devices.Length];
deviceNum = 0;
@andykorth
andykorth / gist:5100871
Created March 6, 2013 16:53
GLFW for C#
using System;
using System.Runtime.InteropServices;
public class GLFW {
// TODO: Obviously don't do this.
public const string GLFW_LIB = "/Users/kortham/lib/libglfw.dylib";
public static int WINDOW = 0x00010001;
@andykorth
andykorth / cpConvexMoment.c
Created May 17, 2012 15:14 — forked from slembcke/cpConvexMoment.c
Convex Moment
So I see two options right now:
Idea 1:
// add a convenience method to the API
cpMakeBodyAndShape(mass, NUM_VERTS, verts){
verts = AllThatConvexHullStuff(verts);
moment = cpMomentForPoly(verts, otherNumber, mass, etc);