Commit Graph

21 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 5abb921456 Refactorizations:
- Prefer std::unordered_map over std::map
- Sort CollArr by treetypes to avoid frequent texture rebinding

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@703 0420edf4-82e4-42fc-9478-35b55e6d67a3
2018-03-22 16:17:58 +00:00
pkeus debff52b66 Improved TTextField widget: set cursor position when clicking, more efficient calculation of cursor position
Fixed several cppcheck messages

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@693 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-03-28 16:41:50 +00:00
pkeus 78729153f1 Added missing std:: prefixes to several C functions. Fixed type conversion issue in ogl.cpp
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@602 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 16:16:09 +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 5660f808a6 Optimization: Reduced amount of padding bytes in data structures
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@543 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-09 11:04:11 +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 97d109235f Several small improvements:
- Fixed crash in sf::SoundBuffer destructor on startup caused by copying of TSound instances in std::vector<TSound> - replaced it with std::vector<TSound*>
- Improved GUI performance of TTextField and TIconButton by pre-creating SFML objects
- Translate word "author"
- Improved handling of KeyRepeat
- Added Icon to Installer

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@512 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-09 09:47:56 +00:00
pkeus 1a058f4f00 Refactorization: Removed useless parameter 'unsigned int mod' and 'bool special'
Bugfix: Fixed key events are counted twice in main menu

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@504 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-04-05 16:35:47 +00:00
pkeus a6f5aecdb1 Refactorizations:
- Store time as float, resolving several compilation issues with clang
- Added missing virtual destructor in GUI
- Fixed typo in OS_WIN32_MINGW (bh.h)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@503 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-17 18:51:23 +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 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 3a0be9d384 Ported Windowing, Input and Texturing systems from SDL to SFML2
Remaining problem: SFML loads textures vertically flipped. Thus, HUD speed display isn't correct yet.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@467 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-06 10:17:19 +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 9620453033 Added release-helper script that removes all makefiles before building installer.
Various refactorizations.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@459 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-02 19:37:38 +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 bf115c2378 Converted lots of code to using glVertexPointer instead of glVertex2f
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@452 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-29 18:32:44 +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 a5a0eb3989 Refactorizations:
- Replaced own MIN/MAX by std::min/max, use clamp whenever possible
- Use delete[] if necessary
- Refactorized light functionality: Moved similar code into function
- Enabled environment caching: Reload environment only if necessary
- Put TOdeData on stack

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@444 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 13:24:19 +00:00
pkeus 6f696dcb2c Refactorizations:
- Cleaned up includes: Moved as much system-independant includes out of bh.h
- Removed second implementation of TGA writing - they are doing the same
- Removed some redundant defines in bh.h
- Updated copyright date in main.cpp output

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@440 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:28:51 +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