1 / 3

脱 glut のすすめ

脱 glut のすすめ. 右クリックメニュー  ボタン,チェックボックス etc. オブジェクトを回転させるための専用の部品がある. ソース中の記述順に 部品が配置される. glui のいいところ・悪いところ. 特徴 glut ベースである (glut にのみ依存している). glut が動く C++ 環境なら動く glut のイベントのメカニズムがそのまま残されるので, glut で利用していたマウスやキーボードの操作がそのまま利用( glui と共存)できる 利用が簡単(数行の追加から始められる) 欠点

kort
Download Presentation

脱 glut のすすめ

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 脱 glut のすすめ 右クリックメニュー  ボタン,チェックボックスetc. オブジェクトを回転させるための専用の部品がある ソース中の記述順に 部品が配置される

  2. glui のいいところ・悪いところ • 特徴 • glut ベースである(glut にのみ依存している).glut が動く C++ 環境なら動く • glut のイベントのメカニズムがそのまま残されるので,glut で利用していたマウスやキーボードの操作がそのまま利用(glui と共存)できる • 利用が簡単(数行の追加から始められる) • 欠点 • 凝ったデザインが出来ない(部品を配置する座標が指定できない),スライドバーがない • ちょっと遅い

  3. コールバックも作れる ソースの雰囲気 操作すると値が変わる GLUI *glui = GLUI_Master.create_glui( "GLUI", 0 ); glui->add_statictext( "Simple GLUI Example" ); glui->add_separator(); glui->add_checkbox( "Wireframe", &wireframe, 1, control_cb ); GLUI_Spinner *segment_spinner = glui->add_spinner ( "Segments:",GLUI_SPINNER_INT, &segments ); segment_spinner->set_int_limits( 3, 60, GLUI_LIMIT_WRAP ); ………. 続く

More Related