Commit Graph

11 Commits (df4a95d1992f65075e7300a107c7fc9016445551)

Author SHA1 Message Date
pkeus df4a95d199 Merged revision(s) 491 from branches/SFML2:
Uniformized paranthese padding with AStyle, use AStyle 2.04

........
Merged revision(s) 489 from branches/SFML2:
Removed all empty translations to avoid confusion
Save language as string to avoid problems when languages.lst changes

........
Merged revision(s) 488 from branches/SFML2:
New features:
- 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

........
Merged revision(s) 487 from branches/SFML2:
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/trunk@516 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-11 07:58:50 +00:00
cazfi bfa6e7bb3f Include <string.h> for memset() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@496 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:33:41 +00:00
pkeus f6e2bf399a Merged revision(s) 478-482 from branches/SFML2:
Refactorizations:
- Avoid duplicating object properties
- Avoid adding literals - apparently this is not optimized by some compilers
- Use STL containern to store vertices in TPolygon
- Formatted with AStyle 2.04
........
Use STL in Polyhedrons, reduced redundant data storage in game_ctrl
........
Use pointers instead of indices in several places
........
Code and data cleanup:
- Cleaned up textures: Keept only those in /data/textures that are currently needed by the game. Resized several textures to remove empty space
- Refactored HUD, fixed bug in wind display when racing upwards the hill
- Removed apparently unnecessary environment box rendering in quadtree code, improving framerate during race
........
Added perf_level 4: Use High resolution textures for skybox.
........



git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@483 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-27 20:45:32 +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 7afb08f242 Moved Vector* types out of etr_types.h; Implemented as object-oriented templates; Replaced several function by overloaded operators
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@457 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 18:17:59 +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 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
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