Fixed source code resources for all examples.

This commit is contained in:
the_fiddler 2009-04-21 13:33:25 +00:00
parent f60715998a
commit c83fda0419
10 changed files with 10 additions and 12 deletions

View file

@ -14,7 +14,7 @@ using OpenTK.Audio;
namespace Examples namespace Examples
{ {
[Example("Playback", ExampleCategory.OpenAL, "1.1")] [Example("Playback", ExampleCategory.OpenAL, "1.1", Documentation="Playback")]
public class Playback public class Playback
{ {
static readonly string filename = Path.Combine(Path.Combine("Data", "Audio"), "the_ring_that_fell.wav"); static readonly string filename = Path.Combine(Path.Combine("Data", "Audio"), "the_ring_that_fell.wav");

View file

@ -32,7 +32,7 @@ using OpenTK.Audio;
namespace Examples namespace Examples
{ {
[Example("EFX: Reverb", ExampleCategory.OpenAL, "EFX")] [Example("EFX: Reverb", ExampleCategory.OpenAL, "EFX", Documentation="EFXReverb")]
public class ReverbExample public class ReverbExample
{ {
static readonly string filename = Path.Combine(Path.Combine("Data", "Audio"), "the_ring_that_fell.wav"); static readonly string filename = Path.Combine(Path.Combine("Data", "Audio"), "the_ring_that_fell.wav");

View file

@ -21,20 +21,18 @@ using OpenTK.Math;
namespace Examples.Tutorial namespace Examples.Tutorial
{ {
[Example("Vertex Buffer Objects", ExampleCategory.OpenGL, "1.5", Documentation="VertexBufferObjects")] [Example("Vertex Buffer Objects", ExampleCategory.OpenGL, "1.5", false, Documentation="VertexBufferObject")]
public class T08_VBO : GameWindow public class T08_VBO : GameWindow
{ {
#region --- Private Fields --- #region --- Private Fields ---
Shapes.Shape cube = new Examples.Shapes.Cube(); Shapes.Shape cube = new Examples.Shapes.Cube();
//Shapes.Shape plane = new Examples.Shapes.Plane(16, 16, 2.0f, 2.0f);
struct Vbo struct Vbo
{ {
public int VboID, EboID, NumElements; public int VboID, EboID, NumElements;
} }
Vbo[] vbo = new Vbo[2]; Vbo[] vbo = new Vbo[2];
//float angle;
public static readonly int order = 8; public static readonly int order = 8;

View file

@ -26,7 +26,7 @@ namespace Examples.Tutorial
/// One more major optimization could be applied (exploit the symmetry of the image with RTT), but /// One more major optimization could be applied (exploit the symmetry of the image with RTT), but
/// that would make the program alot more complicated to follow. You can do this as an exercise. /// that would make the program alot more complicated to follow. You can do this as an exercise.
/// </summary> /// </summary>
[Example("GLSL Animated Julia Set", ExampleCategory.OpenGL, "GLSL", Documentation="JuliaSetFractal.cs")] [Example("Julia Set Fractal", ExampleCategory.OpenGL, "GLSL", Documentation="JuliaSetFractal")]
public class JuliaSetFractal : GameWindow public class JuliaSetFractal : GameWindow
{ {
public JuliaSetFractal() public JuliaSetFractal()

View file

@ -11,7 +11,7 @@ using OpenTK.Graphics.OpenGL;
namespace Examples.WinForms namespace Examples.WinForms
{ {
[Example("Multiple GLControls", ExampleCategory.OpenTK, "GLControl", 3, Documentation="MultipleGLControls.cs")] [Example("Multiple GLControls", ExampleCategory.OpenTK, "GLControl", 3, Documentation="MultipleGLControls")]
public partial class MultipleGLControlsForm : Form public partial class MultipleGLControlsForm : Form
{ {
public MultipleGLControlsForm() public MultipleGLControlsForm()

View file

@ -32,7 +32,7 @@ using OpenTK.Graphics;
namespace Examples.Tests namespace Examples.Tests
{ {
[Example("Color4 Serialization", ExampleCategory.OpenTK, "Test")] [Example("Color4 Serialization", ExampleCategory.OpenTK, "Test", Documentation="Color4Serialization")]
public class Color4Serialization public class Color4Serialization
{ {
public static void Main() public static void Main()

View file

@ -22,7 +22,7 @@ using System.Text.RegularExpressions;
namespace Examples.WinForms namespace Examples.WinForms
{ {
[Example("OpenGL Extensions", ExampleCategory.OpenTK, "Test")] [Example("OpenGL Extensions", ExampleCategory.OpenTK, "Test", Documentation="Extensions")]
public partial class Extensions : Form public partial class Extensions : Form
{ {
#region Fields #region Fields

View file

@ -17,7 +17,7 @@ using OpenTK.Input;
namespace Examples.Tests namespace Examples.Tests
{ {
[Example("GameWindow states", ExampleCategory.OpenTK, "Test")] [Example("GameWindow states", ExampleCategory.OpenTK, "Test", Documentation="GameWindowStates")]
public class GameWindowStates : GameWindow public class GameWindowStates : GameWindow
{ {
Font font = new Font(FontFamily.GenericSansSerif, 16.0f); Font font = new Font(FontFamily.GenericSansSerif, 16.0f);

View file

@ -23,7 +23,7 @@ using OpenTK.Graphics.OpenGL;
namespace Examples.Tests namespace Examples.Tests
{ {
[Example("Input Logger", ExampleCategory.OpenTK, "Test")] [Example("Input Logger", ExampleCategory.OpenTK, "Test", Documentation="InputLogger")]
public partial class InputLogger : Form public partial class InputLogger : Form
{ {
#region Fields #region Fields

View file

@ -17,7 +17,7 @@ using System.Threading;
namespace Examples.Tests namespace Examples.Tests
{ {
[Example("Test Resolution Changes", ExampleCategory.OpenTK, "Test")] [Example("Test Resolution Changes", ExampleCategory.OpenTK, "Test", Documentation="TestResolutionChanges")]
public class TestResolutionChanges public class TestResolutionChanges
{ {
public static void Main() public static void Main()