public static void Main() { using (Textures example = new Textures()) { // Get the title and category of this example using reflection. ExampleAttribute info = ((ExampleAttribute)typeof(Textures).GetCustomAttributes(false)[0]); example.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title); example.Run(30.0, 0.0); } }
public static void Main() { using (Textures example = new Textures()) { // Get the title and category of this example using reflection. example.Title = "WDL thingamajig"; example.Run(30.0, 0.0); } }