Jump to content

How can you put an Opengl (glut) window into a panel?


Vida Marcell
 Share

Recommended Posts

3D viewports in windowed applications work by positioning a separate window on top of the panel you want it to appear on. The ResizeViewport() function in the example handles the window resizing.

If GLUT creates the window, you will need to just resize the GLUT window instead of a UAK window. I don't know how GLUT windows work, but at least you can probably retrieve the HWND and use Windows system commands to position and size it.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

4 hours ago, Josh said:

3D viewports in windowed applications work by positioning a separate window on top of the panel you want it to appear on. The ResizeViewport() function in the example handles the window resizing.

If GLUT creates the window, you will need to just resize the GLUT window instead of a UAK window. I don't know how GLUT windows work, but at least you can probably retrieve the HWND and use Windows system commands to position and size it.

Now i understand! Thanks

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...