summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
commit12e311bd5261078e02bffe63e125f89ae1a57209 (patch)
tree9a71f8e4ca78ea6f5eb09ccdb3bd6cd95830c884 /src/gui/gui.h
parent258f968327f6e790e11e809070c5ea5dc21a299c (diff)
downloadManaVerse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz
ManaVerse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2
ManaVerse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz
ManaVerse-12e311bd5261078e02bffe63e125f89ae1a57209.zip
Move some code from logic queue to separate calls.
It can improve perfomance in slow systems.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 33940ba5e..59a832e8b 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -30,6 +30,7 @@
class Graphics;
class GuiConfigListener;
class ImageSet;
+class SDLFont;
class SDLInput;
/**
@@ -64,6 +65,8 @@ class Gui : public gcn::Gui
*/
void logic();
+ void slowLogic();
+
/**
* Draws the whole Gui by calling draw functions down in the
* Gui hierarchy. It also draws the mouse pointer.
@@ -81,26 +84,26 @@ class Gui : public gcn::Gui
/**
* Return game font.
*/
- gcn::Font *getFont() const
+ SDLFont *getFont() const
{ return mGuiFont; }
/**
* Return help font.
*/
- gcn::Font *getHelpFont() const
+ SDLFont *getHelpFont() const
{ return mHelpFont; }
/**
* Return secure font.
*/
- gcn::Font *getSecureFont() const
+ SDLFont *getSecureFont() const
{ return mSecureFont; }
/**
* Return the Font used for "Info Particles", i.e. ones showing, what
* you picked up, etc.
*/
- gcn::Font *getInfoParticleFont() const
+ SDLFont *getInfoParticleFont() const
{ return mInfoParticleFont; }
/**
@@ -147,10 +150,10 @@ class Gui : public gcn::Gui
private:
GuiConfigListener *mConfigListener;
- gcn::Font *mGuiFont; /**< The global GUI font */
- gcn::Font *mInfoParticleFont; /**< Font for Info Particles*/
- gcn::Font *mHelpFont; /**< Font for Help Window*/
- gcn::Font *mSecureFont; /**< Font for secure labels*/
+ SDLFont *mGuiFont; /**< The global GUI font */
+ SDLFont *mInfoParticleFont; /**< Font for Info Particles*/
+ SDLFont *mHelpFont; /**< Font for Help Window*/
+ SDLFont *mSecureFont; /**< Font for secure labels*/
bool mCustomCursor; /**< Show custom cursor */
ImageSet *mMouseCursors; /**< Mouse cursor images */
float mMouseCursorAlpha;
@@ -164,6 +167,6 @@ extern SDLInput *guiInput; /**< GUI input */
/**
* Bolded text font
*/
-extern gcn::Font *boldFont;
+extern SDLFont *boldFont;
#endif // GUI_H