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

2009年2月5日

SharpGL (1) – 安裝與配置

  1. 先到SharpGL下載套件
  2. 解壓縮到適當的地方
  3. 建立一個C# Windows Application
  4. 在toolbox點選滑鼠右鍵-->Choose Items...
    SglEx0101
  5. 匯入SharpGL.dll於.NET Framework Components,SharpGL.dll在套件內的Binaries\Release底下
    SglEx0102
  6. toolbox會出現SharpGL的控制項
    SglEx0103