2009-02-22 10:43:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
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-20 09:48:33 +00:00
|
|
|
|
[Example("Multiple GLControls", ExampleCategory.OpenTK, "GLControl", 3, Documentation="MultipleGLControls.cs")]
|
|
|
|
|
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
|
|
|
|
}
|