Using CEGUI in a 2D game ?

Advanced game related topics
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Using CEGUI in a 2D game ?

Post 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!
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Using CEGUI in a 2D game ?

Post by Bananenfreak »

Hmm, you can use Sprites after RenderWorld() and before you call FlipBuffers(), but These Sprites are in front of your Windows,... .
Image
Post Reply