aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-03Replace boost::noncopyable with c++11 delete syntax.Alexander Sulfrian2-6/+10
2015-04-03utils/math: Remove custom implementation of min/max.Alexander Sulfrian2-74/+8
The stl provieds sutable implementations.
2014-05-04remove semicolon after namespaceAlexander Sulfrian30-39/+34
Class definitions have to end with a semicolon but not namespaces. So remove this everywhere.
2014-04-08utils/colors: move colors into subdir, add hsvAlexander Sulfrian6-44/+267
All color classes are now in an own subdirectory with a short name. The new class HsvColor represents the Hue/Saturation/Value color model and comes with conversion functions to and from rgb colors (currently integer arithmetic without optimization for higher presicion).
2013-01-21utils/activator: removed unnecessary templateAlexander Sulfrian2-16/+49
2013-01-20fix includesAlexander Sulfrian4-2/+11
2013-01-18rectangle: add possibility to get dimensionAlexander Sulfrian1-0/+5
2013-01-18utils/rectangle: add is_in(Point)Alexander Sulfrian1-0/+15
Add possibility to check whether a Point is inside the rectangle.
2013-01-18utils/rectangle: add + and =+ operator to move rectangleAlexander Sulfrian1-0/+19
Points could be added to rectangles and moves the rectangle by this amount.
2013-01-18utils/rectangle: add set_leftAlexander Sulfrian1-0/+7
2013-01-13utils/image: add shortcut to get image size as DimensionAlexander Sulfrian2-0/+8
2013-01-13add const where applicableAlexander Sulfrian2-5/+5
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-13utils/dimension: add == and != operatorsAlexander Sulfrian1-8/+11
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-13base/config: add graphics.fullscreen optionAlexander Sulfrian1-0/+71
2013-01-13base/config: add graphics.resolution config optionAlexander Sulfrian1-0/+82
The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator.
2013-01-13remove legacy keywords from file headerAlexander Sulfrian18-36/+0
2013-01-13menu/clipping_helper: made clipping workingAlexander Sulfrian1-0/+7
2013-01-13utils/rectangle: removed external constructors and added helperAlexander Sulfrian1-14/+0
constructors that generate a rectangle from GLint[4] or FTBBox are now helper functions to remove the external dependencies from the helper class
2013-01-13utils/point: addition/subtraction should only be possible with same typeAlexander Sulfrian1-4/+4
2013-01-13utils/rectangle: could get top/bottom/left/right coordinates from RectangleAlexander Sulfrian1-8/+19
2013-01-13utils/rectangle: added ctor to create a Rectange from a FTBoxAlexander Sulfrian1-0/+8
2013-01-13utils/math: added abs/min/max as static template functionsAlexander Sulfrian1-0/+69
2013-01-13utils/rectangle: the points should be modifiableAlexander Sulfrian1-2/+2
2013-01-05utils/dimension: added template for types of the metricsAlexander Sulfrian3-69/+41
2013-01-05utils/rectangle: added function to intersect two rectanglesAlexander Sulfrian1-0/+23
2013-01-05utils/rectangle: added shortcut for accessing the position of a rectangleAlexander Sulfrian1-0/+10
2013-01-05utils/rectangle: added constructor for array of valuesAlexander Sulfrian1-0/+6
the new constructor is used to make a rectangle object from the array of values returned from glGet(GL_SCISSOR_BOX)
2013-01-05utils/point: added possibility to change coordsAlexander Sulfrian2-0/+15
2013-01-05utils: templatized point, point_3d and rectangleAlexander Sulfrian6-202/+128
added template parameter for the geometry helper classes, moved function definitions to hpp file to support templates
2013-01-05utils: reformated contructor callsAlexander Sulfrian1-2/+4
2013-01-05utils: added assginment operator for pointAlexander Sulfrian2-0/+8
2013-01-05fixed include pathsAlexander Sulfrian1-2/+2
2013-01-05base: moved Image and Texture to more appropriate locationsAlexander Sulfrian2-0/+154
2013-01-05changed all wstring/wchar_t to string/charAlexander Sulfrian4-27/+27
2013-01-05changed from SDL rendering to OpenGLAlexander Sulfrian4-10/+29
draw, repaint methods do not have the SDL_Surface* parameter anymore
2013-01-05new file classes for text and binary filesAlexander Sulfrian5-12/+197
2013-01-05added Point, Point3D, Dimension, Rectangle, RgbColor and Texture classesAlexander Sulfrian10-0/+510
2013-01-05changed to boost::filesystem::wifstream to support wpathAlexander Sulfrian2-3/+11
wifstream from boost could be created with a boost::filesystem::wpath to support Unicode paths
2013-01-05make string constructor argument a constant referenceAlexander Sulfrian2-2/+2
2013-01-05converted all strings and chars to wstrings and wchar_tsAlexander Sulfrian4-17/+24
all strings with displayable content are now the wide strings for proper unicode handling added boost dependency for proper reading unicode from files
2013-01-05added custom exception classes for better catching them (gotta catch 'em all)Alexander Sulfrian2-0/+93
2013-01-05added string constructor and operator= to locale independent float classAlexander Sulfrian2-11/+22
2013-01-05added class for locale independent parsing of floatAlexander Sulfrian2-0/+140
parsing of float with . or , independent of the current locale
2013-01-05added wrapper for easily getting istreams from files with proper cleanupAlexander Sulfrian2-0/+92