Page 1 of 1

Using CEGUI in a 2D game ?

Posted: Sun Jun 21, 2015 10:13 am
by Joubarbe
Hey,

1. I'm wondering if it's possible to use some 3D functions with 2D games ? Is there a problem when mixing sprites and 3D stuff ? I'm especially interested in CEGUI, because reinventing a UI seems completely stupid as a lot of good libraries exist, CEGUI included.

2. I've tried the SetGUITheme3D() function in the Gadget3D.pb example with a custom CEGUI skin (AlfiskoSkin), but there's an error when opening the Window3D, and I have no idea why. The parameters I used was : SetGUITheme3D("AlfiskoSkin", "DejaVuSans-10"). "Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/GUI", #PB_3DArchive_FileSystem)" is used before, so the folder should be readable.

3. The very interesting thing about CEGUI is its editor : CEED. AlfiskoSkin is an example from CEED, so I don't know if there's a problem with that.

Thanks!

Re: Using CEGUI in a 2D game ?

Posted: Mon Jun 22, 2015 7:47 am
by Bananenfreak
Hmm, you can use Sprites after RenderWorld() and before you call FlipBuffers(), but These Sprites are in front of your Windows,... .