CEgui sample application...how to disable ESC and hide FPS?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

SalvoFa
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Mon Feb 25, 2008 15:25
Location: Italy

CEgui sample application...how to disable ESC and hide FPS?

Postby SalvoFa » Tue Jun 24, 2008 13:03

Hi all,

In my application I need to remove the ESC keybinding that kills the application...and moreover I'd like to hide the FPS label...I know that maybe these features are inside the CEGuiSample class...which class must I use instead of that for my applications?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Jun 24, 2008 18:25

Hi,

Depending on exactly what you need, the samples framework may not be the ideal system to be using (though it is useful for prototyping things!).

The FPS readout and the ESCape key binding are hard-coded into the "base app" parts of the sample framework (so for OpenGL the relevant code is in Samples/common/src/CEGuiOpenGLBaseApplication.cpp). There is currently no setting to disable these things (though having a setting for the FPS is a good idea - I'll add this for the 0.7.0 release, amongst some other enhancements I already had in mind).

So anyway, you'll need to hack away at the samples framework code - so hack away!

CE.

SalvoFa
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Mon Feb 25, 2008 15:25
Location: Italy

Postby SalvoFa » Wed Jun 25, 2008 10:25

Ok...let's hack! :P


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests