Vida Marcell Posted December 21, 2021 Share Posted December 21, 2021 im using glut i want to put a Glut window inside the advanced application interface demo viewport. i saw the opengl example, but i dont quiet understand. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 22, 2021 Share Posted December 22, 2021 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. Quote 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 More sharing options...
Vida Marcell Posted December 22, 2021 Author Share Posted December 22, 2021 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 Quote Link to comment Share on other sites More sharing options...
Vida Marcell Posted February 10, 2022 Author Share Posted February 10, 2022 Oh i understand thats why hammer editor has separate windows for each viewport. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.