Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove semicolon after namespace | Alexander Sulfrian | 2014-05-04 | 30 | -39/+34 |
| | | | | | Class definitions have to end with a semicolon but not namespaces. So remove this everywhere. | ||||
* | utils/colors: move colors into subdir, add hsv | Alexander Sulfrian | 2014-04-08 | 6 | -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 template | Alexander Sulfrian | 2013-01-21 | 2 | -16/+49 |
| | |||||
* | fix includes | Alexander Sulfrian | 2013-01-20 | 4 | -2/+11 |
| | |||||
* | rectangle: add possibility to get dimension | Alexander Sulfrian | 2013-01-18 | 1 | -0/+5 |
| | |||||
* | utils/rectangle: add is_in(Point) | Alexander Sulfrian | 2013-01-18 | 1 | -0/+15 |
| | | | | Add possibility to check whether a Point is inside the rectangle. | ||||
* | utils/rectangle: add + and =+ operator to move rectangle | Alexander Sulfrian | 2013-01-18 | 1 | -0/+19 |
| | | | | | Points could be added to rectangles and moves the rectangle by this amount. | ||||
* | utils/rectangle: add set_left | Alexander Sulfrian | 2013-01-18 | 1 | -0/+7 |
| | |||||
* | utils/image: add shortcut to get image size as Dimension | Alexander Sulfrian | 2013-01-13 | 2 | -0/+8 |
| | |||||
* | add const where applicable | Alexander Sulfrian | 2013-01-13 | 2 | -5/+5 |
| | |||||
* | utils: add disposer helper | Alexander Sulfrian | 2013-01-13 | 3 | -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 helper | Alexander Sulfrian | 2013-01-13 | 2 | -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 != operators | Alexander Sulfrian | 2013-01-13 | 1 | -8/+11 |
| | |||||
* | utils/rgba_color: add RgbaColor (RGB with additional alpha channel) | Alexander Sulfrian | 2013-01-13 | 2 | -0/+160 |
| | |||||
* | utils/rgb_color: add possibility to generate color array for opengl | Alexander Sulfrian | 2013-01-13 | 2 | -2/+75 |
| | |||||
* | base/config: add graphics.fullscreen option | Alexander Sulfrian | 2013-01-13 | 1 | -0/+71 |
| | |||||
* | base/config: add graphics.resolution config option | Alexander Sulfrian | 2013-01-13 | 1 | -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 header | Alexander Sulfrian | 2013-01-13 | 18 | -36/+0 |
| | |||||
* | menu/clipping_helper: made clipping working | Alexander Sulfrian | 2013-01-13 | 1 | -0/+7 |
| | |||||
* | utils/rectangle: removed external constructors and added helper | Alexander Sulfrian | 2013-01-13 | 1 | -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 type | Alexander Sulfrian | 2013-01-13 | 1 | -4/+4 |
| | |||||
* | utils/rectangle: could get top/bottom/left/right coordinates from Rectangle | Alexander Sulfrian | 2013-01-13 | 1 | -8/+19 |
| | |||||
* | utils/rectangle: added ctor to create a Rectange from a FTBox | Alexander Sulfrian | 2013-01-13 | 1 | -0/+8 |
| | |||||
* | utils/math: added abs/min/max as static template functions | Alexander Sulfrian | 2013-01-13 | 1 | -0/+69 |
| | |||||
* | utils/rectangle: the points should be modifiable | Alexander Sulfrian | 2013-01-13 | 1 | -2/+2 |
| | |||||
* | utils/dimension: added template for types of the metrics | Alexander Sulfrian | 2013-01-05 | 3 | -69/+41 |
| | |||||
* | utils/rectangle: added function to intersect two rectangles | Alexander Sulfrian | 2013-01-05 | 1 | -0/+23 |
| | |||||
* | utils/rectangle: added shortcut for accessing the position of a rectangle | Alexander Sulfrian | 2013-01-05 | 1 | -0/+10 |
| | |||||
* | utils/rectangle: added constructor for array of values | Alexander Sulfrian | 2013-01-05 | 1 | -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 coords | Alexander Sulfrian | 2013-01-05 | 2 | -0/+15 |
| | |||||
* | utils: templatized point, point_3d and rectangle | Alexander Sulfrian | 2013-01-05 | 6 | -202/+128 |
| | | | | | added template parameter for the geometry helper classes, moved function definitions to hpp file to support templates | ||||
* | utils: reformated contructor calls | Alexander Sulfrian | 2013-01-05 | 1 | -2/+4 |
| | |||||
* | utils: added assginment operator for point | Alexander Sulfrian | 2013-01-05 | 2 | -0/+8 |
| | |||||
* | fixed include paths | Alexander Sulfrian | 2013-01-05 | 1 | -2/+2 |
| | |||||
* | base: moved Image and Texture to more appropriate locations | Alexander Sulfrian | 2013-01-05 | 2 | -0/+154 |
| | |||||
* | changed all wstring/wchar_t to string/char | Alexander Sulfrian | 2013-01-05 | 4 | -27/+27 |
| | |||||
* | changed from SDL rendering to OpenGL | Alexander Sulfrian | 2013-01-05 | 4 | -10/+29 |
| | | | | draw, repaint methods do not have the SDL_Surface* parameter anymore | ||||
* | new file classes for text and binary files | Alexander Sulfrian | 2013-01-05 | 5 | -12/+197 |
| | |||||
* | added Point, Point3D, Dimension, Rectangle, RgbColor and Texture classes | Alexander Sulfrian | 2013-01-05 | 10 | -0/+510 |
| | |||||
* | changed to boost::filesystem::wifstream to support wpath | Alexander Sulfrian | 2013-01-05 | 2 | -3/+11 |
| | | | | | wifstream from boost could be created with a boost::filesystem::wpath to support Unicode paths | ||||
* | make string constructor argument a constant reference | Alexander Sulfrian | 2013-01-05 | 2 | -2/+2 |
| | |||||
* | converted all strings and chars to wstrings and wchar_ts | Alexander Sulfrian | 2013-01-05 | 4 | -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 Sulfrian | 2013-01-05 | 2 | -0/+93 |
| | |||||
* | added string constructor and operator= to locale independent float class | Alexander Sulfrian | 2013-01-05 | 2 | -11/+22 |
| | |||||
* | added class for locale independent parsing of float | Alexander Sulfrian | 2013-01-05 | 2 | -0/+140 |
| | | | | parsing of float with . or , independent of the current locale | ||||
* | added wrapper for easily getting istreams from files with proper cleanup | Alexander Sulfrian | 2013-01-05 | 2 | -0/+92 |