Commit Graph

633 Commits (master)

Author SHA1 Message Date
pkeus d4b403f525 Added back fade-out in credits.
Fixed particles hanging on left side, not leaving screen
Refactorization: TColor3 uses uint8_t instead of double.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@474 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-02 21:06:27 +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 884206dbc8 Rewritten a few more menus to use SFML. Fixed issue in DrawFrame
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@472 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-02 10:40:58 +00:00
pkeus a9ace1a9c1 Get rid of console window in release builds, added back support for command line parameters.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@471 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-02 10:02:19 +00:00
pkeus 840028f698 Updated installer to SFML
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@470 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-07 14:55:50 +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 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 2f8e31577d Created branch for SFML2 proof-of-concept stuff
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@465 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-05 17:19:09 +00:00
pkeus 5f56174c44 Configured bh.h as precompiled header (built into main.obj): Speeds up compilation by 300%.
Upgraded solution to VS2013

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@464 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 11:09:43 +00:00
pkeus 6b1a458065 Moved several types out of etr_types.h, removed mathlib from standard includes
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@463 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 10:35:22 +00:00
pkeus 07bd482769 Replaced TIndex* types by TVector*i
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@462 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 10:21:09 +00:00
pkeus df18d00a07 Added object-oriented template TMatrix, replacing dangerous double[4][4] typedef
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@461 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-03 19:00:52 +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 98f256a751 Removed unnecessary code
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@458 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-01 18:51:52 +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 c0d980ce6f Optimized math function usage
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@456 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 16:20:28 +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 265d258f4e Added more gl*() simplification functions for ETR types
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@454 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 10:39:30 +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 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 bdd99257d1 git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@448 0420edf4-82e4-42fc-9478-35b55e6d67a3 2013-09-13 08:08:37 +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 3cb84c894b Silenced MSVC warnings in ft_font.cpp
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@445 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 16:25:40 +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 f868bc7f3e Fixed compiler warnings from GCC
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@442 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:49:54 +00:00
pkeus d29715eb3f Fixed non-functional "OK"-Button in event menu
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@441 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:45:03 +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 a5348fabf8 Several refactorizations:
- Removed several unused and unusable functions
- Rewrote BMP writing
- Reduced variable scope
- Use const char* instead of char[40] in gl_values

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@439 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 14:09:21 +00:00
pkeus 5bc10e9505 Removed unnecessary defines in bh.h
Fixed runastyle scripts after code moved to /src

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@438 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 13:59:01 +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 bbadb5adb2 Set version numbers for 0.7 development version.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@436 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:54:54 +00:00
cazfi e75c2fa5d3 Replaced credits claim that translators will be listed in final release
with note that we don't know past translators.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@434 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:46:13 +00:00
cazfi f4e7781710 Replaced non-functional URL to extremetuxracer.com with URL to
sourceforge page.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@432 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:35:55 +00:00
cazfi 44a6ce28fa Removed Catalan from the list of languages to select as translation
file for it is missing.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@430 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 22:10:14 +00:00
cazfi 96e4bd247a Removed "[trans]" tag erronously included "Race aborted" text itself.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@428 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 21:06:10 +00:00
cazfi 8ecf3d055f Distribute banner.bmp and dialog.bmp.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@426 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 09:23:52 +00:00
pkeus 5b626e419c Translated a string in config_screen
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@425 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 07:46:44 +00:00
pkeus 4a3077bf3e Updated Visual Studio Solution after source moved to /src
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@424 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 07:45:46 +00:00
cazfi 7e9be24867 Distribute .desktop file and icon.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@422 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 10:31:48 +00:00
cazfi 3877029180 Install some of the documents.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@420 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 10:18:08 +00:00
cazfi a13cba8ac7 Added .desktop file, originally from Debian but slightly modified.
.png icon generated from our source .svg.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@418 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 09:51: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
pkeus 2da3ba6243 Fixed SDL include
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@415 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-21 14:26:14 +00:00
pkeus bb80af0806 Fixed resolution change handling:
- Bugfix for Windows systems: Save resources during resolution change
- Fixed handling of "auto" resolution: Return automatic resolution only for fullscreen, 800x600 otherwise
- Removed useless restart_on_res_change setting

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@413 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-16 09:49:02 +00:00
pkeus 845e3995ff Bugfix: Make Highscore working even at very first startup
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@412 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-16 08:33:23 +00:00