aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-01-18utils/rectangle: add set_leftAlexander Sulfrian1-0/+7
2013-01-18menu: mouse events now take points, not the single coordsAlexander Sulfrian4-16/+18
2013-01-18base/timestamp: add class to store a point of timeAlexander Sulfrian2-0/+108
2013-01-18base/time: make get_time static, constructor protectedAlexander Sulfrian2-3/+18
The Time class does not have any state so the get_time method could be static. Because the Time class now has only static methods, deny creation by making the ctor protected.
2013-01-18base/time: removed unused RelativeTimerAlexander Sulfrian2-110/+0
2013-01-18menu: fix calculate window coordinatesAlexander Sulfrian4-4/+15
2013-01-13menu/software_mouse_pointer: implement pressed stateAlexander Sulfrian2-4/+65
2013-01-13menu/event_manager: add more mouse eventsAlexander Sulfrian4-3/+13
2013-01-13menu/background_*: vertices are only recalculated if the size changedAlexander Sulfrian4-20/+66
The size of the parent component is cached by the backgrounds and the vertices to draw the backgrounds are only calculated again, if the size of the parent component changed.
2013-01-13menu/background_image: remove the unused texture colorAlexander Sulfrian2-6/+1
2013-01-13menu/texture: implement GlDelayedAllocation interfaceAlexander Sulfrian6-45/+58
Textures are now initialized during their first use, destroyed after their last used and could be use with the Activator.
2013-01-13utils/image: add shortcut to get image size as DimensionAlexander Sulfrian2-0/+8
2013-01-13add const where applicableAlexander Sulfrian4-14/+22
2013-01-13menu/background: use boost::noncopyableAlexander Sulfrian1-10/+7
2013-01-13menu/gl_delayed_allocation: add helper for opengl allocationAlexander Sulfrian2-0/+159
opengl allocation could not be done in the constructor of the opengl objects. The opengl calls only have effect when called form the opengl thread, but the objects could be constructed from other threads. The analogous applies to the destruction. This helper handles the allocation on first use from the opengl thread and frees the resources while calling dispose before real destruction (see Disposable). If dispose is called from the opengl thread, it frees the resources immediately, but if dispose is called from another thread it waits (blocks) until the next use from the opengl thread is complete.
2013-01-13utils: add disposer helperAlexander Sulfrian3-0/+158
The disposer helper should be used to encapsulate disposable objects. This objects have to cleanup something before deconstruction and so you need to help dispose before destruction of the object. The disposer takes care for you. On destruction of the disposer, it calls dispose of the encapsulated object and then destroy it, too. So you do not need to remember to call dispose manually.
2013-01-13utils: add activator helperAlexander Sulfrian2-0/+93
The activator should be used to encapsulate activatable objects. It calls enable on construction and disable on deconstruction. It should be used for example to enable some opengl settings, while the activator object is used in local scope. It ensures, that the opengl setting get disabled, if the scope is left even when throwing an exception.
2013-01-13menu: add some commentsAlexander Sulfrian6-6/+61
2013-01-13utils/dimension: add == and != operatorsAlexander Sulfrian1-8/+11
2013-01-13menu/application: add possibility to query if ogl threadAlexander Sulfrian2-0/+11
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.
2013-01-13menu: use RgbColor.get_array(?) magic everywhereAlexander Sulfrian6-65/+13
2013-01-13menu/text: basic handling of auto sizeAlexander Sulfrian2-0/+18
If auto_size is false the control is setup clipping, so that the outside parts of the control gets discarded. If auto_size enable, the drawn parts outside the component rectangle are drawn. TODO: currently the component dost not really change its size. This could be necessary for sensible regions.
2013-01-13menu: code style: change naming of bool-getter to is prefixAlexander Sulfrian7-9/+9
2013-01-13menu/static: code style: remove this/getter if not neededAlexander Sulfrian1-4/+3
2013-01-13base/config: add debug.boxes config optionAlexander Sulfrian3-1/+29
if debug.boxes is true in configuration file, a red border is drawn around all controls
2013-01-13menu/static_rectangle: add implementation of static for rectanglesAlexander Sulfrian2-0/+100
2013-01-13menu/static: add infrastructure for simple geometric typesAlexander Sulfrian2-0/+263
2013-01-13utils/rgba_color: add RgbaColor (RGB with additional alpha channel)Alexander Sulfrian2-0/+160
2013-01-13utils/rgb_color: add possibility to generate color array for openglAlexander Sulfrian2-2/+75
2013-01-13menu/container: remove assertAlexander Sulfrian1-1/+0
2013-01-13base/config: add graphics.fullscreen optionAlexander Sulfrian4-6/+96
2013-01-13menu: add some commentsAlexander Sulfrian2-3/+25
2013-01-13base/config: add graphics.resolution config optionAlexander Sulfrian4-1/+110
The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator.
2013-01-13base/config: add basic config infrastructureAlexander Sulfrian4-1/+128
2013-01-13menu/drawable_control: always cache modelview matrixAlexander Sulfrian1-12/+17
Some controls modify the modelview matrix during drawing their contents. Restore it afterwards, so that other parts could be drawn easily on top.
2013-01-13menu/modelview_matrix_cache: add helper classAlexander Sulfrian3-6/+91
Use the new ModelviewMatrixCache to cache the current state of the opengl MODELVIEW_MATRIX.
2013-01-13menu: use boost::shared_mutexAlexander Sulfrian7-30/+46
Use everywhere a mutable boost::shared_mutex to enable locking during const getter and the multiple reader and single writer pattern.
2013-01-13remove legacy keywords from file headerAlexander Sulfrian80-160/+0
2013-01-13menu: enable (and disable) glTexture only if neededAlexander Sulfrian3-1/+6
2013-01-13menu/background: backgrounds get to know the parent componentAlexander Sulfrian8-38/+133
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.
2013-01-13menu: generalized frame_background to backgroundAlexander Sulfrian13-115/+84
background could now be a background for all DrawableControl instances each subclass should call the parents draw() during executing the draw() method for background painting TODO: background should know the size of the control to only draw the background there
2013-01-13menu/clipping_helper: made clipping workingAlexander Sulfrian4-15/+20
2013-01-13menu/contianer: element position should be relative to the container positionAlexander Sulfrian2-2/+6
container should provide each of the containing elements' draw functions with its own position as base (store before drawing the first element and restore it after each drawing)
2013-01-13menu/container: calculate window coordinatesAlexander Sulfrian3-3/+74
the container have to keep the current window coordinates of its left, bottom corner, therefor they have to be recalculated on every size/position change (need virtual functions in DrawableControl)
2013-01-13menu/text: removed unnecessary blockAlexander Sulfrian1-9/+7
2013-01-13menu/application: group the opengl init stepsAlexander Sulfrian1-4/+3
2013-01-13menu/application: whitespace fixAlexander Sulfrian1-2/+2
2013-01-13menu/application: disable opengl depth buffer (only 2d needed)Alexander Sulfrian2-1/+2
2013-01-13menu/application: alpha blending should not be enabled by defaultAlexander Sulfrian2-4/+5
2013-01-13utils/rectangle: removed external constructors and added helperAlexander Sulfrian5-16/+28
constructors that generate a rectangle from GLint[4] or FTBBox are now helper functions to remove the external dependencies from the helper class