skinkairewalker wrote: Sat Jan 06, 2024 10:55 pm
Wouldn't it be possible to use your imgui module with the current ogre3d in purebasic?
Maybe you forgot but you asked the same thing in July
I paste my previous answer because nothing is changed
It's just a demo of how it's possible to implement a IMGUI in OpenGL, it's not remotely complete or really usable for something serious.
That being said, when Ogre is set to use OpenGL I suppose it could be possible to make this work, but certainly not without some modifications and frankly does not sound like a good idea to me.
If I needed something like this for "PB Ogre" I would just follow the same principles shown in this demo and implement it using the PB Ogre command set.
But again, I can't stress it enough: it's not a finished product... a library.
It's just a demo implemented using this library (SGL) to test a concept and test the library itself.
The good thing is you have the source.
Also as StarBootics mentioned, the module uses a batch renderer (another demo for the SGL library) and this would not fit easily with using PB Ogre at the same time. You can use the same concepts outlined in the module to handle the "gadgets" and to decide when to draw and what, that part should stay the same but the batch renderer input data should be translated to PB Ogre drawing commands.
I'm not familiar with it, so I can't help.
And if there is not a concept for buffering drawing calls in it, it would end up being probably slower... but I simply don't know.