2011-01-18 11:40:49 +00:00
|
|
|
|
// This code was written for the OpenTK library and has been released
|
|
|
|
|
// to the Public Domain.
|
|
|
|
|
// It is provided "as is" without express or implied warranty of any kind.
|
|
|
|
|
|
|
|
|
|
using System;
|
2009-02-22 10:43:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
using OpenTK;
|
|
|
|
|
using OpenTK.Graphics.OpenGL;
|
|
|
|
|
|
|
|
|
|
namespace Examples.WinForms
|
|
|
|
|
{
|
2009-04-21 13:33:25 +00:00
|
|
|
|
[Example("Multiple GLControls", ExampleCategory.OpenTK, "GLControl", 3, Documentation="MultipleGLControls")]
|
2009-04-20 09:48:33 +00:00
|
|
|
|
public partial class MultipleGLControlsForm : Form
|
2009-02-22 10:43:35 +00:00
|
|
|
|
{
|
2009-04-20 09:48:33 +00:00
|
|
|
|
public MultipleGLControlsForm()
|
2009-02-22 10:43:35 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Main()
|
|
|
|
|
{
|
2009-04-20 09:48:33 +00:00
|
|
|
|
using (MultipleGLControlsForm example = new MultipleGLControlsForm())
|
2009-02-22 10:43:35 +00:00
|
|
|
|
{
|
|
|
|
|
Utilities.SetWindowTitle(example);
|
|
|
|
|
example.ShowDialog();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2007-11-04 15:33:43 +00:00
|
|
|
|
}
|