コード例 #1
0
ファイル: GLControl.cs プロジェクト: gaoshoufenmu/GLDotNet
 protected virtual void OnContextCreated(GLContextEventArgs e)
 {
     if (this.ContextCreated != null)
         this.ContextCreated(this, e);
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: smack0007/GLDotNet
 private void GLControl2_Render(object sender, GLContextEventArgs e)
 {
     e.Context.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
 }
コード例 #3
0
ファイル: GLControl.cs プロジェクト: gaoshoufenmu/GLDotNet
 protected virtual void OnRender(GLContextEventArgs e)
 {
     if (this.Render != null)
         this.Render(this, e);
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: smack0007/GLDotNet
 private void GLControl2_ContextCreated(object sender, GLContextEventArgs e)
 {
     e.Context.ClearColor(0, 1.0f, 0, 1.0f);
 }