RandyGaul / qu3e

Lightweight and Simple 3D Open Source Physics Engine in C++
zlib License
928 stars 111 forks source link

Is it possible to set up without ImGUI? #43

Closed MajickTek closed 6 years ago

MajickTek commented 6 years ago

Can a small demo be provided in pure free glut or glfw or something? like just pressing a key to add a cube to the scene. In theory it should be simple, but I can't figure it out.

MajickTek commented 6 years ago

Or at least piping q3Render to an image using stb_image.h

RandyGaul commented 6 years ago

You can delete imgui pretty easily.

MajickTek commented 6 years ago

care to elaborate?

if you can't now that's fine, over here it is like 10:00 PM ;)

RandyGaul commented 6 years ago

Do you want to remove the imgui UI? It’s fairly easy to remove it. I can point you to the lines of code to remove later on this evening if that helps. 7PM for me right now :)

RandyGaul commented 6 years ago

Remove imgui function calls in this function: https://github.com/RandyGaul/qu3e/blob/master/demo/Demo.cpp#L371-L406

Like these ones: https://github.com/RandyGaul/qu3e/blob/master/demo/Demo.cpp#L403 https://github.com/RandyGaul/qu3e/blob/master/demo/Demo.cpp#L378

But make sure to remove all of them, not just the two examples I linked here.

And that's it!

MajickTek commented 6 years ago

Oh. Thanks!