private void GLControl1_Render(object sender, GLContextEventArgs e) { e.Context.Clear(ClearBufferMask.ColorBufferBit); }
protected virtual void OnRender(GLContextEventArgs e) { if (this.Render != null) this.Render(this, e); }
private void GLControl1_GLContextCreated(object sender, GLContextEventArgs e) { e.Context.ClearColor(1, 0, 0, 1); }
protected virtual void OnContextCreated(GLContextEventArgs e) { if (this.GLContextCreated != null) this.GLContextCreated(this, e); }