protected virtual void OnContextCreated(GLContextEventArgs e) { if (this.ContextCreated != null) this.ContextCreated(this, e); }
private void GLControl2_Render(object sender, GLContextEventArgs e) { e.Context.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); }
protected virtual void OnRender(GLContextEventArgs e) { if (this.Render != null) this.Render(this, e); }
private void GLControl2_ContextCreated(object sender, GLContextEventArgs e) { e.Context.ClearColor(0, 1.0f, 0, 1.0f); }