It is currently Sat Jul 11, 2020 7:30 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using CEGUI in a 2D game ?
PostPosted: Sun Jun 21, 2015 10:13 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Sep 18, 2013 11:54 am
Posts: 401
Location: France
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: Using CEGUI in a 2D game ?
PostPosted: Mon Jun 22, 2015 7:47 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Apr 15, 2013 12:22 pm
Posts: 517
Hmm, you can use Sprites after RenderWorld() and before you call FlipBuffers(), but These Sprites are in front of your Windows,... .

_________________
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye