Commit graph

13 commits

Author SHA1 Message Date
Celtic Minstrel
8122039707 Rename .tpp -> .hpp
Several header files used the .tpp extension, which means that they are not correctly detected as C++ (though this can be overridden and has been for one case in the XCode project). The .tpp extension is one of several intended for private template instantiations, but these headers were topleve headers included in many places.
2016-03-19 21:57:03 -04:00
Charles Dang
11b941ab58 GUI2: removed CVideo argument from tdialog::preshow
In all but three cases, this argument was unused. In those remaining cases,
the argument could be replaced by twindow::video().
2016-03-15 02:15:28 +11:00
Celtic Minstrel
2e36ed230f Use widget groups in the advanced graphics options dialog 2016-02-26 03:34:10 -05:00
Charles Dang
4af0e81533 Remove legacy Linear scaling algorithm 2016-01-08 05:10:30 +11:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
gfgtdf
08e3862efa add to_string method to MAKE_ENUM
structs generated by the MAKE_ENUM makro now have a .to_string() method.
2015-06-04 21:30:51 +02:00
gfgtdf
da1c8bf60e rewrite MAKE_ENUM macro
Instead of creating an enum, the MAKE_ENUM macro now creates a struct
which holds an enum and provides functions for enum <-> string
conversion.

This has multiple advantages:
1) We don't need MAKE_ENUM_STREAM_OPS anymore.
2) The generated struct is much easier to use in templates
3) We don't allow implicit to int conversions anymore.
4) The enum values are now declared inside the structs scope.
2015-06-04 02:08:02 +02:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
anonymissimus
ca0a17f791 fix MSVC warning about comparison signed <-> unsigned 2014-11-30 23:58:27 +01:00
Chris Beck
13a873df01 implement image prefs using function pointers, for efficiency 2014-11-14 03:50:51 -05:00
Chris Beck
5f96795080 refactor scale_surface, and add old version as "legacy linear" option 2014-11-14 00:32:40 -05:00
Chris Beck
1582026ec9 implement advanced graphics options back-end
This commit makes the `image` namespace check the advanced options
when selecting how to scale a sprite. It also makes the advanced
graphics options window flush the caches when an option is changed.

This permits the user to experiment with different graphics
algorithms while playing the game.
2014-10-24 18:42:18 -04:00
Chris Beck
07b6eeedb2 add "advanced graphics" preference dialog, for scaling algo options
This commit also gives the smart enums in src/make_enum.hpp
introspective capabilities, by giving them a static const size_t
which tells how many possible values they may take (hence the range
of the enum.) It was convenient for the dialog implementation
to have this.

Note that, I had to make use of __attribute__((unused)) to compile
this. I apply this using a macro which adds it for gcc, clang, and
mingw which I know respond to this attribute. I don't know what is
the equivalent MSVC device, or if it is even necessary, so its
possible that this commit needs to be fixed up.

We also disable unit tests for the new advanced graphics dialog,
there are no tests for it right now...
2014-10-24 18:42:18 -04:00