Commit Graph

27 Commits (master)

Author SHA1 Message Date
q3k 5f36ee14ed winsys: lazy initialize sfml to prevent global ctor races 2021-04-28 15:51:00 +02: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 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
pkeus 443ff32862 Improved translatability of some strings
Fixed wrong course dimensions in wild_west_chute_out

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@660 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-05-18 09:20:27 +00:00
pkeus c2458aeb3a Fixed joystick handling:
- Always activate joysicks, removed mechanism to deactivate joysticks by a macro (broken since switch to SFML).
- Fixed data range for axis movements (-100 to +100)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@645 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-03-01 09:58:14 +00:00
pkeus 3436509c11 Removed unused fonts, improved prepare_build_installer.bat, ran AStyle
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@644 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-02-29 10:03:40 +00:00
cazfi d54c9e3db5 Save screenshots under .etr subdirectory of user home directory.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@638 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-02-04 10:50:08 +00:00
pkeus 817281efc3 Refactorizations:
- Use initializer lists (C++11)
- Fixed several cppcheck messages, mostly about uninitialized variables in constructors
- particles.cpp: Improved parameter values and simplified code

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@635 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-29 09:05:00 +00:00
pkeus e1d7d0b848 Several small changes:
- Fixed keyboard navigation into help menu (do not exit immediately)
- Fixed forgotten size parameter to CSPList in game_ctrl.cpp
- Added std:: prefix to exit() call
- Do not use atoi to convert a char to an integer

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@613 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-21 14:37:58 +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 e7d7ff4c88 Improved screenshot functionality:
- Support arbitrary formats (though still hardcoded)
- Use PNG as default
- Fixed crash: resize texture before filling it

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@566 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-15 15:31:11 +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 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 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 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 34b0e51efa New features:
- Support resolution and fullscreen changing without restart in both Windows and Linux
- Translatability of statistics at end of race
- Adapt GUI particle count to screen size

Fixes:
- Remember selected race in GUI
- Fixed crash in Debug mode when loading course without any trees
- Simplified collision detection



git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@488 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-12-03 21:08:46 +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 e2b58a7b9b Updated settings:
- Removed obsolete sound settings
- Adapted types and limits of settings to actual needs of ETR
- Changed default BPP mode to 0 (choose system's mode. Now implemented) instead of 1 (16-bit)

Bugfixes:
- Fixed track marks being broken since sf::Color introduction
- Fixed splash screen logo position

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@486 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-30 09:17:19 +00:00
pkeus 0d621aac9b Corrections to HUD: Fixed papercut font mode, improved string positioning
Use more GUI controls in config_screen

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@485 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-29 16:40:59 +00:00
pkeus 5f39d2424f Fixed several bugs found by cppcheck, removed no longer supported and required mipmap functions
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@476 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-22 19:51:54 +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 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 c904a766f7 Rewritten Audio Module on top of SFML2
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@466 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-05 17:21:21 +00:00
pkeus 7895b95675 Refactorizations:
- Removed several unused variables
- Use int instead of float instead of double where appropriate
- Fixed keymapping in credits screen (u disables UI snow, not Tab)

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