Commit Graph

18 Commits (master)

Author SHA1 Message Date
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 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 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 d351e0124c GUI changes:
- Changed key shortcuts in GUI to provide more consistent behaviour
 - Clicking on a control locks focus to it
 - Fixed focussing in event menu
 - Fixed broken TTextField

Other changes:
 - Fixed german translation
 - Small refactorizations

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@490 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-12-04 21:27:34 +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 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 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 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
pkeus e9e8417d51 Refactorizations:
- Changed CCourse::LoadObjectMap to CCourse::LoadAndConvertObjectMap
- Replaced some strings by integers
- Removed unused variable loopdelay
- Removed unnecessary TVector3 constructor calls

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