Rev 667 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Audio;
using OpenTK.Audio.OpenAL;
using OpenTK.Input;
namespace BauzoidNET
{
public partial class Form1 : Form
{
private bool mIsLoaded = false;
public Form1()
{
InitializeComponent();
}
private void glControl1_Load(object sender, EventArgs e)
{
mIsLoaded = true;
float test = BauzoidNET.math.MathUtil.clamp(2.7f, 0, 1);
}
private void glControl1_Paint(object sender, PaintEventArgs e)
{
if (!mIsLoaded) // Play nice
return;
GL.ClearColor(Color.Aqua);
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
mGlView.SwapBuffers();
}
private void statusStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
private void fileNew_Click(object sender, EventArgs e)
{
}
private void fileOpen_Click(object sender, EventArgs e)
{
}
private void fileSave_Click(object sender, EventArgs e)
{
}
private void fileSaveAs_Click(object sender, EventArgs e)
{
}
private void fileExit_Click(object sender, EventArgs e)
{
Close();
}
}
}