aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* menu/application: Remove singleton.Alexander Sulfrian2015-04-031-25/+12
| | | | | The singleton pattern should not be used in most cases, because it behaves like global variables.
* remove semicolon after namespaceAlexander Sulfrian2014-05-041-1/+1
| | | | | Class definitions have to end with a semicolon but not namespaces. So remove this everywhere.
* menu/application: add is_runningAlexander Sulfrian2013-01-211-0/+5
|
* menu/application: add quit() to quit the app from everywhereAlexander Sulfrian2013-01-211-5/+9
|
* menu/application: add free to allow multiple runsAlexander Sulfrian2013-01-211-0/+6
| | | | | | free() is used to reset the instance of this singleton, so that it gets recreated on the next access. This allows multiple creation/deletion cycles (for example in the tests).
* fix includesAlexander Sulfrian2013-01-201-3/+8
|
* menu: add mouse manager for handling mouse focus and clicksAlexander Sulfrian2013-01-181-0/+2
|
* menu/application: toggle debug boxes with dAlexander Sulfrian2013-01-181-0/+5
|
* menu: add some commentsAlexander Sulfrian2013-01-131-1/+4
|
* menu/application: add possibility to query if ogl threadAlexander Sulfrian2013-01-131-0/+8
| | | | | | | opengl calls should only executed in the thread, that created the opengl context. To query whether the current thread is the opengl thread, the application class stores the current thread id of the opengl thread after initializing opengl.
* base/config: add graphics.fullscreen optionAlexander Sulfrian2013-01-131-5/+7
|
* base/config: add graphics.resolution config optionAlexander Sulfrian2013-01-131-1/+2
| | | | | | The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator.
* base/config: add basic config infrastructureAlexander Sulfrian2013-01-131-1/+12
|
* remove legacy keywords from file headerAlexander Sulfrian2013-01-131-2/+0
|
* menu: enable (and disable) glTexture only if neededAlexander Sulfrian2013-01-131-1/+0
|
* menu/background: backgrounds get to know the parent componentAlexander Sulfrian2013-01-131-0/+2
| | | | | | | | | Backgrounds now know the parent control, they are painted in, to query the size. Backgrounds are not allowed to use glClear anymore, should only draw something during the extend of the parent control and should take care to do not modify the opengl cursor position.
* menu/application: group the opengl init stepsAlexander Sulfrian2013-01-131-4/+3
|
* menu/application: whitespace fixAlexander Sulfrian2013-01-131-2/+2
|
* menu/application: disable opengl depth buffer (only 2d needed)Alexander Sulfrian2013-01-131-0/+1
|
* menu/application: alpha blending should not be enabled by defaultAlexander Sulfrian2013-01-131-4/+0
|
* menu/application: renamed test variableAlexander Sulfrian2013-01-051-2/+2
|
* menu/application: simplified codeAlexander Sulfrian2013-01-051-2/+1
|
* menu: keep frame in containerAlexander Sulfrian2013-01-051-21/+1
| | | | | before the current frame was stored in application, now every container could keep a frame and paint it before all other content
* menu/application: removed display width/height, use DrawableControl::sizeAlexander Sulfrian2013-01-051-23/+13
|
* menu: clean quit after pressing qAlexander Sulfrian2013-01-051-0/+10
|
* menu/application: Application now is also a container for the overlaysAlexander Sulfrian2013-01-051-19/+4
|
* menu: Container subclasses need a Container as parent/ownerAlexander Sulfrian2013-01-051-1/+1
|
* Makefile.inc: modularized flags, removed include dirsAlexander Sulfrian2013-01-051-1/+1
|
* ported from log4cxx to log4cppAlexander Sulfrian2013-01-051-5/+7
| | | | | | log4cxx depends on Apache Portable Runtime Utility Library, so we switch to log4cpp with nearly the same features but with no dependencies for easier porting to other platforms
* changed all wstring/wchar_t to string/charAlexander Sulfrian2013-01-051-2/+2
|
* added first frame and sub directory for framesAlexander Sulfrian2013-01-051-0/+4
| | | | loading screen: currently only with background
* changed from SDL rendering to OpenGLAlexander Sulfrian2013-01-051-11/+41
| | | | draw, repaint methods do not have the SDL_Surface* parameter anymore
* added software cursorAlexander Sulfrian2013-01-051-0/+7
|
* changed screen to display (only local naming)Alexander Sulfrian2013-01-051-2/+2
| | | | changed that naming to be consistent to all other draw methods
* added overlaysAlexander Sulfrian2013-01-051-0/+18
| | | | added list of drawable controls that are drawn over all frames
* added event_managerAlexander Sulfrian2013-01-051-4/+16
| | | | | event_manager for passing the events from the SDL thread to the event thread
* refactor some things with FPSmanagerAlexander Sulfrian2013-01-051-7/+28
|
* reset singleton instance on destructionAlexander Sulfrian2013-01-051-0/+3
|
* added main applicationAlexander Sulfrian2013-01-051-0/+139
added makefile added main function (src/main.cpp) added Application-class with sdl initialisation and main loop added log4cxx.xml configuration for main application adjusted .gitignore