2009年2月6日

SharpGL (2) – A very simple example

這邊先做一個簡單的例子,順便測試環境是否能夠正常執行。

  1. 新建一個C# Windows Application
  2. 在Form裡新增OpenGLControl,同時調整適當的大小
    SglEx0104 
  3. 增加該OpenGLControl的OpenGLDraw event
    SglEx0105
  4. 直接在該event中coding
    (程式碼參考
    Installing and adding to Visual Studio - Step by Step)
    SglEx0106 
  5. 上述的Form1.cs要先using SharpGL這個namespace才能直接調用OpenGL class!
  6. 這樣就能Start debugging了~
    SglEx0107

沒有留言: