Skip to content

Instantly share code, notes, and snippets.

View DanielVF's full-sized avatar

Daniel Von Fange DanielVF

View GitHub Profile
-- Learning both Lua, and OpenGL. Probably NOT GOOD CODE.
-- But it's pretty in action.
-- Click to add squares.
require 'luagl'
require 'luaglut'
local fps = 60
local msec = 1000 / fps
quit = false
using System.Reflection;
using System.Collections;
public static void ShowProperties(Object myObject){
Hashtable PropertiesOfMyObject = new Hashtable();
Type t = myObject.GetType();
PropertyInfo[] pis = t.GetProperties();
for (int i=0; i<pis.Length; i++) {
PropertyInfo pi = (PropertyInfo)pis.GetValue(i);
Console.WriteLine(pi.Name);
you = "Frog"
me = "Frog"
you == me # True