41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using SharpGL;
|
|
using SharpGL.Enumerations;
|
|
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;
|
|
|
|
namespace JuicyGraphics {
|
|
public partial class mainForm : Form {
|
|
public mainForm() {
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void openGLControl1_Load(object sender, EventArgs e) {
|
|
|
|
}
|
|
|
|
//private void openGLControl1_OpenGLDraw(object sender, SharpGL.RenderEventArgs args) {
|
|
// OpenGL GL = ((OpenGLControl)sender).OpenGL;
|
|
// //GL.SetDimensions(Width, Height);
|
|
// GL.Viewport(0, 0, Width, Height);
|
|
// GL.Ortho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
|
|
// GL.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT);
|
|
// GL.ClearColor(0f, 0.3f, 0.7f, 1f);
|
|
|
|
// GL.Begin(BeginMode.Triangles);
|
|
// GL.Color(1.0, 0.0, 0.0);
|
|
// GL.Vertex(1.0, 1.0);
|
|
// GL.Vertex(-1.0, -1.0);
|
|
// GL.Vertex(-1.0, 1.0);
|
|
// GL.End();
|
|
// GL.Flush();
|
|
//}
|
|
}
|
|
}
|