This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def system(cmd) | |
puts cmd | |
Kernel.system(cmd) | |
end | |
def convert(filename, size) | |
ext = File.extname(filename) | |
base = File.basename(filename, ext) | |
dir = File.dirname(filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public AudioSource audioSauce; | |
public string CurrentAudioInput = "none"; | |
int deviceNum = 0; | |
void Start() | |
{ | |
string[] inputDevices = new string[Microphone.devices.Length]; | |
deviceNum = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
NewerOlder