Commit Graph

496 Commits

Author SHA1 Message Date
hikerstk
24a11c5b8b Fixed resolution change (it got broken while fixing leaked textures).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8518 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-05 01:55:26 +00:00
hikerstk
9c127322f2 Added assert to material_manager to catch if unintentionally
temporary materials are made permanent (while this is not
a memory leak, the code should use the right functions to
indicate which materials will stay around). Fixed some
materials that became permanently even though the code
called 'pushTempMaterial' (but the materials stayed
permanent). Moved icons_frame into commong race gui
base class, and made race gui textures permanent (so
that they don't cause any false texture-leaked messasges,
and also to avoid loading them again at each race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-04 00:15:46 +00:00
auria
0f57b0b46a Rename macros to avoid name clases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 23:50:36 +00:00
auria
a4c846bbe3 Experimental test, Joerg I hope you won't hate me ;) Switch some GUI code to for_each instead of for, i think it's easier to read
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8511 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 23:46:03 +00:00
auria
f0f7167216 Fixed leak when using images with masks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8504 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-02 01:44:38 +00:00
auria
532053d319 Fix some RTT-related leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-02 01:39:23 +00:00
auria
0cf4133d8a Fixed nitro being emitted by small blobs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8501 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-02 00:21:53 +00:00
auria
6b9f04c858 Removed outdated FIXME
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8500 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-01 23:24:04 +00:00
hikerstk
c216d2b35e Fixed more texture memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-01 22:38:23 +00:00
auria
7a50215426 Minimal code to support disabling FBOs. No GUI for that at this time.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8486 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-30 22:58:05 +00:00
auria
bea4efecfc Fix material 2D not always being enabled when it should
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-30 17:42:44 +00:00
hikerstk
fd78e796d2 Changed interface to sky box and sky cube (so that textures can be
tracked and released). Fixed memory leak in sky domes/boxes and
mini map.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8481 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-29 00:29:34 +00:00
hikerstk
559edb6178 Renamed Track::m_all_meshes to m_all_cached_meshes, IrrDriver::removeMesh
to IrrDriver::removeFromCache to better describe their functions.
Started to add proper freeing of cached track meshes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 11:47:33 +00:00
auria
96f1e43178 remove anisotropic from material.xml code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-24 17:43:28 +00:00
auria
100d670866 Make all surfaces anistropic
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-24 00:07:53 +00:00
auria
c1f992231e Full support for smoothing scaled icons in the GUI (will only work if you use a patched irrlicht)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8433 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 20:34:38 +00:00
auria
0438696ac6 Attempt at smoothing GUI icons when scaled down. Doesn't appear to change much.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 19:21:54 +00:00
auria
16158e434f Make per-material sounds always positional
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 16:09:23 +00:00
auria
cea2f2d91b Terrain SFX fixes with latest changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8425 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 00:32:43 +00:00
auria
3eb841e5e6 Fix compilation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-22 19:28:23 +00:00
auria
3422ade944 Improve skeleton debug code a bit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-21 22:54:37 +00:00
auria
e9d8534e4e Add my skeleton debug code, it was hard enough to make I don't want to lose it (don't worry unless you enable it by editing the files it's disabled by default)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-21 22:25:09 +00:00
auria
3f5486aeab Hopefully fixed bug with masked textures
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-20 20:40:10 +00:00
hikerstk
a467633602 Started to fix texture memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-20 13:44:34 +00:00
hikerstk
23a2beda6a Cosmetic changes, use m_video_driver instead of calling
a function to get it.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-20 13:04:21 +00:00
auria
221b784680 Apply alpha mask in constructor, not every time. Apart from being faster it uses less RAM.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8390 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-20 01:53:25 +00:00
hikerstk
dd778cfc8c Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8380 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 04:02:10 +00:00
auria
75209cb1ce Fixed minor memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-17 23:32:17 +00:00
hikerstk
62fb47aeed Added support for textures to trigger a reset on collision (separately from
triggering reset when driving on).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-17 22:06:45 +00:00
hikerstk
99e38de2db Fixed VS compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-14 11:51:39 +00:00
auria
4023a0bb49 More precise polygon count, as requested by Kinsu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8333 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 12:43:58 +00:00
auria
717213a303 Fix listener position not updated when looking back
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-13 00:55:30 +00:00
auria
719e9c3622 Oops, in Doxygen the tag for preconditions is \pre
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8311 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-12 20:42:57 +00:00
hikerstk
0fcfc3d5cf Added lighning support to minimal race gui.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-10 22:10:33 +00:00
auria
454139bb7d At samuncle's request, don't randomize the last LOD level
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8268 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-09 19:18:41 +00:00
auria
c54809ebe2 Fixed lightning being multiplied in multiplayer mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 14:41:18 +00:00
auria
7bc9cfb3ff Fixed eliminating karts in three strikes mode looking ugly
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-26 19:36:29 +00:00
auria
41b9f6b8f7 After feedback on IRC, make lightning occur les often
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8072 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-26 19:22:44 +00:00
auria
1d60d24d48 Fixed silly copy and paste error in my new code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8068 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-26 17:35:42 +00:00
auria
7ce7daa5ac Added support for external masks; this allows using JPEG even on images that need transparency. Reduced palmacacia from 800 KB to 300 KB using this feature
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8064 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 23:52:30 +00:00
auria
b65915a919 Raise ignore level in temp logger; irrlicht 1.8 is a little more chatty than 1.7 so shut it up
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8061 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 19:25:31 +00:00
hikerstk
1815b6f223 Added files missing in previous commit (started adding
support for new addon list, but that's work-in-progress).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 12:07:16 +00:00
hikerstk
fa512b8010 Fixed memory leak in LOD node.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8020 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 22:38:42 +00:00
auria
950dbd8688 Display the FPS stirng even when waiting for data, sometimes I'd wonder whether FPS display was activated or not...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7987 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-18 15:47:41 +00:00
auria
8b76268b8b Make vsync configurable in config file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7986 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-18 15:39:52 +00:00
auria
d113bc4104 Added (disabled by default) support for anti-aliasing (edit your config file to get it)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 23:13:33 +00:00
auria
7c729ca6f4 Not sure I should introduce this so close to a release, but anyway let's go, we can disable if it causes issues ;) use LOD on karts : far away karts will not be animated.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 20:19:09 +00:00
auria
01154fd6b4 Simplified attachModel method, it was confusing that it has a out-pointer parameter yet returns void
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 19:08:01 +00:00
hikerstk
c6c61f7f3e Missing file in commit 7593.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 21:43:58 +00:00
hikerstk
e6aa7b0cf9 Used proper base class for setAllMaterialFlags.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 21:04:26 +00:00