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