Rev 667 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 667 | chris | 1 | using System; |
| 2 | using System.Collections.Generic; |
||
| 3 | using System.ComponentModel; |
||
| 4 | using System.Data; |
||
| 5 | using System.Drawing; |
||
| 6 | using System.Linq; |
||
| 7 | using System.Text; |
||
| 8 | using System.Threading.Tasks; |
||
| 9 | using System.Windows.Forms; |
||
| 10 | |||
| 11 | using OpenTK; |
||
| 12 | using OpenTK.Graphics; |
||
| 13 | using OpenTK.Graphics.OpenGL; |
||
| 14 | using OpenTK.Audio; |
||
| 15 | using OpenTK.Audio.OpenAL; |
||
| 16 | using OpenTK.Input; |
||
| 17 | |||
| 18 | namespace BauzoidNET |
||
| 19 | { |
||
| 20 | public partial class Form1 : Form |
||
| 21 | { |
||
| 22 | private bool mIsLoaded = false; |
||
| 23 | |||
| 24 | public Form1() |
||
| 25 | { |
||
| 26 | InitializeComponent(); |
||
| 27 | } |
||
| 28 | |||
| 29 | private void glControl1_Load(object sender, EventArgs e) |
||
| 30 | { |
||
| 31 | mIsLoaded = true; |
||
| 32 | |||
| 33 | float test = BauzoidNET.math.MathUtil.clamp(2.7f, 0, 1); |
||
| 34 | } |
||
| 35 | |||
| 36 | private void glControl1_Paint(object sender, PaintEventArgs e) |
||
| 37 | { |
||
| 38 | if (!mIsLoaded) // Play nice |
||
| 39 | return; |
||
| 40 | |||
| 41 | GL.ClearColor(Color.Aqua); |
||
| 42 | GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); |
||
| 43 | |||
| 777 | chris | 44 | mGlView.SwapBuffers(); |
| 667 | chris | 45 | } |
| 777 | chris | 46 | |
| 47 | private void statusStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) |
||
| 48 | { |
||
| 49 | |||
| 50 | } |
||
| 51 | |||
| 52 | private void fileNew_Click(object sender, EventArgs e) |
||
| 53 | { |
||
| 54 | |||
| 55 | } |
||
| 56 | |||
| 57 | private void fileOpen_Click(object sender, EventArgs e) |
||
| 58 | { |
||
| 59 | |||
| 60 | } |
||
| 61 | |||
| 62 | private void fileSave_Click(object sender, EventArgs e) |
||
| 63 | { |
||
| 64 | |||
| 65 | } |
||
| 66 | |||
| 67 | private void fileSaveAs_Click(object sender, EventArgs e) |
||
| 68 | { |
||
| 69 | |||
| 70 | } |
||
| 71 | |||
| 72 | private void fileExit_Click(object sender, EventArgs e) |
||
| 73 | { |
||
| 74 | Close(); |
||
| 75 | } |
||
| 667 | chris | 76 | } |
| 77 | } |