aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* utils/colors: move colors into subdir, add hsvAlexander Sulfrian2014-04-086-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).
* utils/activator: removed unnecessary templateAlexander Sulfrian2013-01-212-16/+49
|
* fix includesAlexander Sulfrian2013-01-204-2/+11
|
* rectangle: add possibility to get dimensionAlexander Sulfrian2013-01-181-0/+5
|
* utils/rectangle: add is_in(Point)Alexander Sulfrian2013-01-181-0/+15
| | | | Add possibility to check whether a Point is inside the rectangle.
* utils/rectangle: add + and =+ operator to move rectangleAlexander Sulfrian2013-01-181-0/+19
| | | | | Points could be added to rectangles and moves the rectangle by this amount.
* utils/rectangle: add set_leftAlexander Sulfrian2013-01-181-0/+7
|
* utils/image: add shortcut to get image size as DimensionAlexander Sulfrian2013-01-132-0/+8
|
* add const where applicableAlexander Sulfrian2013-01-132-5/+5
|
* utils: add disposer helperAlexander Sulfrian2013-01-133-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.
* utils: add activator helperAlexander Sulfrian2013-01-132-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.
* utils/dimension: add == and != operatorsAlexander Sulfrian2013-01-131-8/+11
|
* utils/rgba_color: add RgbaColor (RGB with additional alpha channel)Alexander Sulfrian2013-01-132-0/+160
|
* utils/rgb_color: add possibility to generate color array for openglAlexander Sulfrian2013-01-132-2/+75
|
* base/config: add graphics.fullscreen optionAlexander Sulfrian2013-01-131-0/+71
|
* base/config: add graphics.resolution config optionAlexander Sulfrian2013-01-131-0/+82
| | | | | | The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator.
* remove legacy keywords from file headerAlexander Sulfrian2013-01-1318-36/+0
|
* menu/clipping_helper: made clipping workingAlexander Sulfrian2013-01-131-0/+7
|
* utils/rectangle: removed external constructors and added helperAlexander Sulfrian2013-01-131-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
* utils/point: addition/subtraction should only be possible with same typeAlexander Sulfrian2013-01-131-4/+4
|
* utils/rectangle: could get top/bottom/left/right coordinates from RectangleAlexander Sulfrian2013-01-131-8/+19
|
* utils/rectangle: added ctor to create a Rectange from a FTBoxAlexander Sulfrian2013-01-131-0/+8
|
* utils/math: added abs/min/max as static template functionsAlexander Sulfrian2013-01-131-0/+69
|
* utils/rectangle: the points should be modifiableAlexander Sulfrian2013-01-131-2/+2
|
* utils/dimension: added template for types of the metricsAlexander Sulfrian2013-01-053-69/+41
|
* utils/rectangle: added function to intersect two rectanglesAlexander Sulfrian2013-01-051-0/+23
|
* utils/rectangle: added shortcut for accessing the position of a rectangleAlexander Sulfrian2013-01-051-0/+10
|
* utils/rectangle: added constructor for array of valuesAlexander Sulfrian2013-01-051-0/+6
| | | | | the new constructor is used to make a rectangle object from the array of values returned from glGet(GL_SCISSOR_BOX)
* utils/point: added possibility to change coordsAlexander Sulfrian2013-01-052-0/+15
|
* utils: templatized point, point_3d and rectangleAlexander Sulfrian2013-01-056-202/+128
| | | | | added template parameter for the geometry helper classes, moved function definitions to hpp file to support templates
* utils: reformated contructor callsAlexander Sulfrian2013-01-051-2/+4
|
* utils: added assginment operator for pointAlexander Sulfrian2013-01-052-0/+8
|
* fixed include pathsAlexander Sulfrian2013-01-051-2/+2
|
* base: moved Image and Texture to more appropriate locationsAlexander Sulfrian2013-01-052-0/+154
|
* changed all wstring/wchar_t to string/charAlexander Sulfrian2013-01-054-27/+27
|
* changed from SDL rendering to OpenGLAlexander Sulfrian2013-01-054-10/+29
| | | | draw, repaint methods do not have the SDL_Surface* parameter anymore
* new file classes for text and binary filesAlexander Sulfrian2013-01-055-12/+197
|
* added Point, Point3D, Dimension, Rectangle, RgbColor and Texture classesAlexander Sulfrian2013-01-0510-0/+510
|
* changed to boost::filesystem::wifstream to support wpathAlexander Sulfrian2013-01-052-3/+11
| | | | | wifstream from boost could be created with a boost::filesystem::wpath to support Unicode paths
* make string constructor argument a constant referenceAlexander Sulfrian2013-01-052-2/+2
|
* converted all strings and chars to wstrings and wchar_tsAlexander Sulfrian2013-01-054-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
* added custom exception classes for better catching them (gotta catch 'em all)Alexander Sulfrian2013-01-052-0/+93
|
* added string constructor and operator= to locale independent float classAlexander Sulfrian2013-01-052-11/+22
|
* added class for locale independent parsing of floatAlexander Sulfrian2013-01-052-0/+140
| | | | parsing of float with . or , independent of the current locale
* added wrapper for easily getting istreams from files with proper cleanupAlexander Sulfrian2013-01-052-0/+92