Jump to content
  • Advertisement
Sign in to follow this  
billconan

[.net] how to render a scene into a control with tao

This topic is 4706 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello guys, i wonder how to render a scene into a control with tao. i browsed the examples of tao, but the windows all generated through the freeGlut functions. i try to write a program with menus, tool bars and opengl scene rendered in different panels to make a multiple view. how can i do that? is there any tutorial or example or something? thank you.

Share this post


Link to post
Share on other sites
Advertisement
If you take a look at Tao.Platform.Windows, you'll find a SimpleOpenGlControl. Although I've never used it, I've heard it's rather nice to work with.

Share this post


Link to post
Share on other sites
hi, i found that control in the document, but is there any tutorial? the old site of tao is down, but i find some information from google cache. it seems the gl functions present in the override onpaint function. it is pretty weird, how the gl functions know which is the rendering control? can i just override other controls' onpaint function and just write gl functions in it?

another question is how to refresh the scene? call the onpaint function in a loop?

Share this post


Link to post
Share on other sites
Quote:
Original post by billconan
oh,oh one more thing is if i use this gl control, can i still use glut to detect the mouse and keyboard input?
Why use GLUT if .NET does it for you [wink].

Either use the MouseMotion event or just override the OnMouseMotion method and you'll be good to go. Use it just like you'd use a normal control.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!