Commit Graph

29 Commits (7680c942a5f164e2a1bd0cecc3d0c5c0e3f5b011)

Author SHA1 Message Date
q3k 7680c942a5 src/depot: add, move file loads to depot resolution 2021-04-28 20:18:44 +02:00
pkeus 68f971fccc Various small Optimizations:
- Use final specifier
- Use STL reserve() function more often
- Replace forward_list by vector for storing credits entries

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@731 0420edf4-82e4-42fc-9478-35b55e6d67a3
2020-03-07 18:14:19 +00:00
pkeus e79a1f28b3 Fixed webpage URL in credits
Fixed lighting of trees (thanks to Reinhard Niehoff)
Updated Visual Studio solution to VS 2019
Small optimizations:
- Try to make use of reserve() functions of STL containers
- Use MakePathStr to create paths

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@714 0420edf4-82e4-42fc-9478-35b55e6d67a3
2019-11-04 09:09:53 +00:00
pkeus 4f1f702b7d Updated to Visual Studio 2017
Reserve memory for some std::vectors to optimize their allocation behaviour

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@698 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-08-27 14:37:42 +00:00
pkeus bb23733009 Windows: Set window icon
Ran AStyle, removed an unused variable

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@692 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-01-19 13:25:12 +00:00
cazfi cd24a9dd0f Replaced deprecated sf::Text::setColor() calls by
sf::Text::setFillColor() and sf::Text::setOutlineColor()


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@685 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-11-13 20:21:43 +00:00
pkeus 0a80bb84aa Refactorizations:
- Removed TColor3, use sf::Color instead
- Introduced more C++11 features: Use constexpr and defaulted/deleted functions
- Made several member functions static or const
- Removed dead code

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@631 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-28 10:41:09 +00:00
pkeus 7420115fbe Fixed 128 type conversion warnings from VS.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@600 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 13:07:10 +00:00
pkeus 85a6b4d9f9 Removed "using namespace std;"
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@598 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-18 16:55:59 +00:00
pkeus 5b57a1380b Removed line number limitation "feature" from CSPList and hence the limitations on the size of several data structures while loading them. The limits are arbitrary and are technically not necessary.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@597 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-18 16:10:27 +00:00
pkeus 6dd5346246 Small refactorizations and fixes:
- Fixed line ending of groups.lst
- Fixed GUI behaviour in race_select.cpp
- Removed redundant small menu title, use large one instead
- Code cleanups

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@550 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-14 22:34:42 +00:00
pkeus fcc6658ae4 Fixed compilation issues:
- Fixed warnings about type conversions
- Switch back to deprecated sf::Text::setColor(), as sf::Text::setFillColor() is not available in SFML 2.3.2

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@541 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-08 20:28:17 +00:00
pkeus edf6bdbae6 Bugfixes:
- Removed ambiguous shortcut from TIconButton control
- Fixed rendering of track marks at environments that are not "sunny"

Refactorizations:
- Removed unused code
- Simplified code in track_marks.cpp

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@539 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 19:44:32 +00:00
pkeus 62634d1b4d Fixed CppCheck and VS Code Analysis messages, replaced usage of deprecated sf::Text::setColor()
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@536 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 13:00:59 +00:00
pkeus ee1be7908c Bugfixes:
- Improved handling of missing data/configuration files: Print error message instead of crashing
- Fixed "auto" resolution: Use desktop mode for fullscreen
- Fixed GUI scaling in higher resolutions than 800*600
- Fixed Credits GUI broken in r492
- Updated some copyright dates to 2014

Refactorizations:
- Fixed some warnings
- Avoid copying TScore objects
- Small simplifications

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@518 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-12 19:00:57 +00:00
pkeus ad659cf18b Refactorizations:
- Reduced time spend in set_material(), reduced calls in track_marks.cpp
- Uniformized some more double/float usage
- Prefer copy_n over memcpy, fill_n over memset

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@515 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-10 21:25:13 +00:00
pkeus 5251ccb2b2 Refactorizations:
- Make use of C++11 feature emplae_back() to avoid object copying
- Rewritten frame copying
- Avoid converting sf::String to std::string
- Provide rvalue reference overload for CSPList::Add()

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@505 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-04-05 17:49:48 +00:00
pkeus d8a1ec6b68 Reimplemented CSPList on top of std::list<string>
Fixed a few cppcheck findings

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@492 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-07 11:23:50 +00:00
pkeus ee38139d2a Uniformized paranthese padding with AStyle, use AStyle 2.04
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@491 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-01-18 09:55:13 +00:00
pkeus ff90183305 Refactorizations:
- Check for gl_error automatically (in states)
- Cleaned up some unnecessary includes
- Removed some index maps that offer no performance gain
- Load credit text on demand and unload it when leaving credits menu
- Replaced loadIdentity+multMatrix by loadMatrix

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@487 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-30 18:02:01 +00:00
pkeus 6b56742877 Replaced TColor (float-based) by sf::Color (byte-based)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@473 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-02 11:48:13 +00:00
pkeus 03d1004215 Rewritten large parts of GUI: Don't use direct OpenGL anymore. Speedup by up to 1000%.
Use sf::String instead of std::string, where Unicode support is required

Problems: Credits have no transparency anymore. Small UI glitch between loading and intro.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@469 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-07 10:48:48 +00:00
pkeus d6687c3162 Ported Text rendering to SFML. Removed FTFont library.
Enabled smooth textures

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@468 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-06 10:59:03 +00:00
pkeus 59429647f4 Fixed crash caused by uninitialized variable introduced in last commit
Refactorizations:
- Reduced code duplication with template
- removed unused code
- use string instead of char*

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@460 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-03 13:11:40 +00:00
pkeus 1d5c6ffa8f Converted more code to using glVertexPointer instead of glVertex2f
Introduced method to call glColor with a TColor
Use Integer instead Float instead of Double where appropriate

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@453 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 10:16:40 +00:00
pkeus 1ec2d11761 Implemented adjustable framerate control
Simplified calls to Message() SPStrN() and adding empty lines to CSPList

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@447 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-12 17:39:10 +00:00
pkeus 2745a24f10 Removed several unnecessary stuff, removed code duplication in audio code, made some single-statment-functions inline in classes
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@446 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 18:28:39 +00:00
pkeus 4c37a66b4e Fixed several cppcheck messages
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@437 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 11:14:32 +00:00
cazfi 83abd1b455 Moved sources to their own subdirectory src
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@417 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-26 21:02:38 +00:00