Webster Sheets
c6adff8a29
Fix PiRngWrapper, fix starts_with and ends_with like methods.
2021-04-23 03:12:20 -04:00
Webster Sheets
f08f00d334
Build with C++17, remove nonstd::string_view
2021-04-23 03:12:20 -04:00
Karl F
9e44b09314
Happy new year!
...
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
Webster Sheets
e0451219d8
Move reverse-container implementation to utils.h
...
Fix unused variable warnings.
Add SmoothEasing function
- A variable-exponent easing function for input and friends
- It's not as performant as the optimized InOut*Easing variants so use sparingly
- Based on the mentioned blog and reverse-engineering the Godot implementation
2020-11-11 18:43:42 -05:00
Webster Sheets
6a1945874f
Remove dependence on PngWriter
...
Now we don't need to link it into tool binaries!
Also removed unused MsgTimer functionality
2020-06-06 18:01:41 -04:00
Webster Sheets
36e1e5394b
Add better logging framework
...
- Shim Error, Warning and Output to the new log framework
- Add multiple non-error log levels, and a non-fatal error log level
- Use fmt::fmt to format args instead of snprintf, avoid using variadics
- Remove the (no-op) OpenGLDebugMsg function
2020-05-15 16:39:37 -04:00
Karl F
436db08636
Happy new decade!
...
May you live long and prosper!
2020-01-01 10:47:46 +01:00
Webster Sheets
5cdaefad6a
Run clang-format over the entire code base.
...
Fix hidden header-inclusion-order dependency errors.
Update .clang-format for v7.0.1.
2019-01-05 17:09:05 -05:00
Karl F
d2ab921b62
Happy New Year!
...
Awesome sauce (for next year):
find . -type f -exec sed -i 's/2008-2018 Pioneer Developers'/'2008-2019 Pioneer Developers/g' {} \;
closes #4507
2019-01-03 15:28:42 +01:00
Andrew Copland
53bdd1724c
fixed version for isqrt using soft calculation
2018-01-25 11:08:24 +00:00
Andrew Copland
b71f7a07d1
Replace soft isqrt with cast from sqrt which is 7.3 to x15 times faster
2018-01-24 21:25:06 +00:00
Karl F
7225e9c723
Happy New Year!
...
Ten years in the making now, but how can we improve upon perfection
for ten more years?
2018-01-01 21:22:12 +01:00
John Bartholomew
02f63db01c
Delete unused functions [SU]Int64ToStr.
2017-12-26 13:02:26 +00:00
ColdSpirit
fd4cfd21c4
Added -skipmenu (-sm) flag
2017-11-10 16:45:18 +04:00
ColdSpirit
5683029019
_import() rework and fix for #4124
...
Now _import tries to load by name, tries to load with ".lua" extension, then tries
to load from import directories and relative by caller directory (if it
exists) with and without extension.
Imported files saves in the cache with full path key to avoid
duplicates.
New import should to work little slower than old, but it more
intuitive and support more variations.
2017-09-26 22:47:40 +04:00
Andrew Copland
74d50958fe
MERRY HAPPY 2017
2017-01-04 15:11:15 +00:00
Peter
dd07de3949
Add function format_duration.
...
Add a function format_duration that formats a duration in seconds as 1w2d13h28m.
The letters for units are localisable in core (UNIT_...). This is also exported
to Lua as Format.Duration.
2016-08-01 14:41:58 +02:00
Andrew Copland
d193baa757
GPU jobs for generating gas giant textures.
2016-06-11 15:41:30 +01:00
Andrew Copland
25f4377289
Vector and Matrix to/from string functions.
2016-04-17 11:48:19 +01:00
Andrew Copland
a739031459
Float version of SplitSpec
2016-04-02 14:56:56 +01:00
Andrew Copland
4dda7ec18b
Move SplitSpec into utils
2016-03-31 22:16:34 +01:00
Andrew Copland
fea5ac26b2
MERRY HAPPY 2016
2016-01-29 11:31:54 +00:00
Andrew Copland
ef25415c09
Deal with idiotic windows compilation issues due to macros
2015-11-09 20:48:49 +00:00
Claudius Mueller
e6c851f29a
display in degree/minute/second format and moved status bars up
2015-10-21 08:29:20 -04:00
nick-the-ninja
f0b99ab1d7
Helper functions for JSON serialisation (including floating point to/from string).
2015-02-14 21:48:04 +00:00
Robert Norris
22d380426d
move GL screendump into GL renderer
2015-01-07 07:54:45 +11:00
Robert Norris
9f95339a9d
MERRY HAPPY
2014-12-31 23:05:37 +11:00
Andrew Copland
2b1c2923f0
Change the call GLDebug PrintMessage uses so I can redirect it.
2014-11-20 22:44:32 +00:00
Lars W. (lwho)
9f25bef476
Persist explored state of a system.
2014-09-29 20:10:05 +02:00
John Bartholomew
817c40cb74
extract DateTime -> game time conversion to a function in utils.cpp
2014-09-07 23:58:04 +01:00
Karl F
26a12d34e2
fixes #2939 money format overflow, dont use int in money format
2014-06-13 16:48:26 +02:00
Karl F
ea27d62570
more powerful format_money
2014-03-13 08:30:56 +01:00
Robert Norris
e3517d3d9b
single glyph bake and atlas update
2014-03-03 11:10:46 +11:00
Andrew Copland
c4ac5be144
Add MsgTimer struct, used it on another branch to time loading stages.
2014-02-23 17:32:03 +00:00
Robert Norris
85733fd3bb
Output function to replace direct writes to stdout/stderr
2014-01-28 20:32:37 +11:00
Robert Norris
16804d774c
remove OS-specific error and warning functions, just call the SDL message box function
2014-01-28 17:13:05 +11:00
John Bartholomew
0248ef29d5
fix MSVC version test in src/utils.h
...
"_MSC_VER < 1800" passes on Linux/gcc, because gcc evaluates undefined
symbols as zero, so the version check needs to test defined(_MSC_VER)
too.
2014-01-07 19:49:28 +00:00
Andrew Copland
f46733f809
Don't need to redefine these for newer versions of MSVC
2014-01-05 15:20:36 +00:00
Robert Norris
6dc4283eb6
happy new year
2014-01-02 14:43:38 +11:00
Miha Vitorovic
0cad4a5572
Added function "ends_with_ci" to utils (ends with case insensitive), and
...
using this function throughout the code.
2013-12-05 22:18:31 +01:00
Miha Vitorovic
11d77315ce
utils.h: function ends_with is now case insensitive.
2013-12-02 16:49:47 +01:00
John Bartholomew
f46b92e328
build against the bundled GLEW rather than the system GLEW
2013-09-07 17:18:56 +01:00
Andrew Copland
1bb1a7f21a
Switch to using the model tags system for storing the approach_, docking_ and leaving_ waypoint nodes.
...
Fetch them out in the SpaceStationType after each one has been configured.
2013-02-16 15:46:53 +00:00
John Bartholomew
2d2303b6be
move ceil_pow2 out from TextureBuilder.cpp into utils.h
2013-01-03 22:25:38 +00:00
Robert Norris
91b8586653
happy new year
2013-01-01 12:36:52 +11:00
Robert Norris
efbce7648a
update license paths
2012-09-16 10:59:15 +10:00
Robert Norris
e9f4448bba
add copyright notices to all the code
2012-09-16 09:45:04 +10:00
kko
5e1d3457a0
SilentWarning is so underutilized it seems better to remove it.
...
Just fprintf stderr instead.
2012-07-19 22:30:16 -04:00
John Bartholomew
44ff949ac5
Merge branch 'master' into minor-cleanup-9
2012-07-04 21:20:17 +01:00
John Bartholomew
544fcdf3e7
add an optional precision parameter to format_distance()
2012-06-26 02:28:31 +01:00