Blue Solitare Posted March 18, 2010 Share Posted March 18, 2010 What's the secret to get into wireframe mode when using gamelib? I'm calling game.engine.SetWireframe(1) before my main loop and I'm not getting wireframe?? Thanks, Blue Quote Link to comment Share on other sites More sharing options...
Canardia Posted March 18, 2010 Share Posted March 18, 2010 It should be just SetWireframe(1). Or maybe game.engine.SetWireframe(true) would work, since it's LEO's command. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Blue Solitare Posted March 21, 2010 Author Share Posted March 21, 2010 My mistake, this is not a gamelib question but a LEO question. I've tried: game.engine.SetWireframe(1); game.engine.SetWireframe(true); ::Wireframe(1); ::Wireframe(true); None of which do anything. I've stepped through the code and the leWireframe(mode) method is getting called, but no wireframe. I've tried placing the call throughout my main with no effect. As a test I ran the project wizard and created a new project with the spinning cube and set wireframe(true) and it also didn't work. Any suggestions would be great! Thanks, Blue Quote Link to comment Share on other sites More sharing options...
Canardia Posted March 21, 2010 Share Posted March 21, 2010 I found the problem. Framework has its own wiremode attribute, and it enables and disables the wireframe mode in each RenderFramework call. However, the engine.dll is missing the Framework SetWireFrame() command, so currently you can't use wireframe mode with Framework at all. I posted a bug report about this: http://leadwerks.com/werkspace/index.php?/tracker/issue-80-setwireframe-command-missing/ Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Blue Solitare Posted March 21, 2010 Author Share Posted March 21, 2010 Thanks for tracking that down. So is there a work around? Quote Link to comment Share on other sites More sharing options...
Canardia Posted March 21, 2010 Share Posted March 21, 2010 It might be possible to find the memory location of the int wiremode attribute and change it. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ 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.