supertux.git
10 years agoMinor cleanup
Ingo Ruhnke [Fri, 8 Aug 2014 21:53:42 +0000 (23:53 +0200)]
Minor cleanup

10 years agoSwitched from passing pointers around to using numeric MenuIds and a factory class
Ingo Ruhnke [Fri, 8 Aug 2014 19:20:27 +0000 (21:20 +0200)]
Switched from passing pointers around to using numeric MenuIds and a factory class

10 years agoAdded MenuManager::draw()
Ingo Ruhnke [Fri, 8 Aug 2014 18:18:31 +0000 (20:18 +0200)]
Added MenuManager::draw()

10 years agoCleaned up some function names in MenuManager
Ingo Ruhnke [Fri, 8 Aug 2014 18:14:53 +0000 (20:14 +0200)]
Cleaned up some function names in MenuManager

10 years agoUse std::unique_ptr<> in ContribMenu
Ingo Ruhnke [Fri, 8 Aug 2014 19:32:52 +0000 (21:32 +0200)]
Use std::unique_ptr<> in ContribMenu

10 years agoMerge branch 'feature/menu-cleanup'
Ingo Ruhnke [Fri, 8 Aug 2014 04:56:05 +0000 (06:56 +0200)]
Merge branch 'feature/menu-cleanup'

10 years agoFixed crash when exiting menu and recalc_pos/all_menus
Ingo Ruhnke [Fri, 8 Aug 2014 04:16:52 +0000 (06:16 +0200)]
Fixed crash when exiting menu and recalc_pos/all_menus

10 years agoMinor code cleanup
Ingo Ruhnke [Fri, 8 Aug 2014 04:05:08 +0000 (06:05 +0200)]
Minor code cleanup

10 years agoUse std::unique_ptr<> in ScreenManager
Ingo Ruhnke [Fri, 8 Aug 2014 02:56:16 +0000 (04:56 +0200)]
Use std::unique_ptr<> in ScreenManager

10 years agoMoved menu code frome GameSession and Worldmap into the proper Menu::check_menu(...
Ingo Ruhnke [Fri, 8 Aug 2014 02:02:52 +0000 (04:02 +0200)]
Moved menu code frome GameSession and Worldmap into the proper Menu::check_menu() calls

10 years agoTurned MenuStorage into a proper class
Ingo Ruhnke [Fri, 8 Aug 2014 01:20:03 +0000 (03:20 +0200)]
Turned MenuStorage into a proper class

10 years agoTurned MenuManager into a proper class instead of just a collection of static functio...
Ingo Ruhnke [Fri, 8 Aug 2014 00:50:01 +0000 (02:50 +0200)]
Turned MenuManager into a proper class instead of just a collection of static functions, added std::unique_ptr<> to Menu

10 years agoRemoved some unused code from Console
Ingo Ruhnke [Fri, 8 Aug 2014 00:05:44 +0000 (02:05 +0200)]
Removed some unused code from Console

10 years agoMerge button and stick input gracefully in GameControllerManager
Ingo Ruhnke [Thu, 7 Aug 2014 02:10:07 +0000 (04:10 +0200)]
Merge button and stick input gracefully in GameControllerManager

10 years agoFixed missing SDL_WINDOW_RESIZABLE flag in GLRenderer
Ingo Ruhnke [Thu, 7 Aug 2014 00:19:49 +0000 (02:19 +0200)]
Fixed missing SDL_WINDOW_RESIZABLE flag in GLRenderer

10 years agoMerge branch 'feature/gamecontroller'
Ingo Ruhnke [Wed, 6 Aug 2014 21:36:05 +0000 (23:36 +0200)]
Merge branch 'feature/gamecontroller'

10 years agoAdded option to disable gamecontroller use and fall back to old joystick code
Ingo Ruhnke [Wed, 6 Aug 2014 21:22:51 +0000 (23:22 +0200)]
Added option to disable gamecontroller use and fall back to old joystick code

10 years agoRenamed JoystickKeyboardController to InputManager
Ingo Ruhnke [Wed, 6 Aug 2014 19:23:28 +0000 (21:23 +0200)]
Renamed JoystickKeyboardController to InputManager

10 years agoKeycode values changed between SDL1 and SDL2, so reset controls to default if old...
Ingo Ruhnke [Wed, 6 Aug 2014 19:07:48 +0000 (21:07 +0200)]
Keycode values changed between SDL1 and SDL2, so reset controls to default if old SDL1 values are found

10 years agoBetter fix. Keeping values intact
Tobias Markus [Wed, 6 Aug 2014 12:32:45 +0000 (14:32 +0200)]
Better fix. Keeping values intact

10 years agoFix for wrong lightmap size in fullscreen
Tobias Markus [Wed, 6 Aug 2014 12:26:28 +0000 (14:26 +0200)]
Fix for wrong lightmap size in fullscreen

10 years agoMoved keyboard code into KeyboardManager class
Ingo Ruhnke [Wed, 6 Aug 2014 07:34:49 +0000 (09:34 +0200)]
Moved keyboard code into KeyboardManager class

10 years agoAdded MENU_BACK button (i.e. B on Xbox360 controller)
Ingo Ruhnke [Wed, 6 Aug 2014 04:37:29 +0000 (06:37 +0200)]
Added MENU_BACK button (i.e. B on Xbox360 controller)

10 years agoRemoved obsolete keycode range check
Ingo Ruhnke [Wed, 6 Aug 2014 03:46:11 +0000 (05:46 +0200)]
Removed obsolete keycode range check

10 years agoImplemented basic support for SDL GameController
Ingo Ruhnke [Wed, 6 Aug 2014 03:39:15 +0000 (05:39 +0200)]
Implemented basic support for SDL GameController

10 years agoRemoved some old event eating code, as randomly discarding events is a bad idea with...
Ingo Ruhnke [Wed, 6 Aug 2014 02:31:22 +0000 (04:31 +0200)]
Removed some old event eating code, as randomly discarding events is a bad idea with hotplug in place

10 years agoInit game controller on startup
Ingo Ruhnke [Wed, 6 Aug 2014 02:30:26 +0000 (04:30 +0200)]
Init game controller on startup

10 years agoMoved joystick specific code from JoystickKeyboardController into JoystickManager...
Ingo Ruhnke [Wed, 6 Aug 2014 02:29:41 +0000 (04:29 +0200)]
Moved joystick specific code from JoystickKeyboardController into JoystickManager class

10 years agoMinor CODINGSTYLE update: auto_ptr -> unique_ptr
Ingo Ruhnke [Wed, 6 Aug 2014 02:33:14 +0000 (04:33 +0200)]
Minor CODINGSTYLE update: auto_ptr -> unique_ptr

10 years agoAdded missing <vector> include
Ingo Ruhnke [Wed, 6 Aug 2014 02:32:29 +0000 (04:32 +0200)]
Added missing <vector> include

10 years agoMinor cleanup
Ingo Ruhnke [Tue, 5 Aug 2014 00:40:15 +0000 (02:40 +0200)]
Minor cleanup

10 years agoSplitted the mouse cursor into three separate images to avoid blending artifacts
Ingo Ruhnke [Tue, 5 Aug 2014 00:15:04 +0000 (02:15 +0200)]
Splitted the mouse cursor into three separate images to avoid blending artifacts

10 years agoAdded 1px transparent border to most fonts, left a few out since glyph count doesn...
Ingo Ruhnke [Mon, 4 Aug 2014 19:14:41 +0000 (21:14 +0200)]
Added 1px transparent border to most fonts, left a few out since glyph count doesn't match image size

10 years agoAdded 1-pixel transparent border around glyphs to avoid GL blending artifacts when...
Ingo Ruhnke [Mon, 4 Aug 2014 19:02:04 +0000 (21:02 +0200)]
Added 1-pixel transparent border around glyphs to avoid GL blending artifacts when scaling along with a script for doing so

Only while.stf has been converted so far

10 years agoAdded support for desktop-fullscreen mode
Ingo Ruhnke [Mon, 4 Aug 2014 02:28:25 +0000 (04:28 +0200)]
Added support for desktop-fullscreen mode

10 years agoFix C++0x flags for clang
Mathnerd314 [Mon, 4 Aug 2014 02:23:40 +0000 (04:23 +0200)]
Fix C++0x flags for clang

10 years agoMerge branch 'feature/c++11'
Ingo Ruhnke [Mon, 4 Aug 2014 01:31:21 +0000 (03:31 +0200)]
Merge branch 'feature/c++11'

10 years agoMove Mtn_Pass to world2 since it uses moving platforms
Mathnerd314 [Sun, 3 Aug 2014 23:05:16 +0000 (01:05 +0200)]
Move Mtn_Pass to world2 since it uses moving platforms

10 years agoMake the coins secret again and also make it easier to get into the secret area.
Mathnerd314 [Sun, 3 Aug 2014 22:51:28 +0000 (00:51 +0200)]
Make the coins secret again and also make it easier to get into the secret area.

10 years agoMore cave level tweaks
Mathnerd314 [Sun, 3 Aug 2014 22:27:16 +0000 (00:27 +0200)]
More cave level tweaks

10 years agoTurn the ledge in Entrance to the Cave into a secret area because I spent way too...
Mathnerd314 [Sun, 3 Aug 2014 20:50:39 +0000 (22:50 +0200)]
Turn the ledge in Entrance to the Cave into a secret area because I spent way too long trying to jump into it.
Also raise the ceiling a bit so BigTux can get in too

10 years agoFix tile in the wrong layer
Mathnerd314 [Sun, 3 Aug 2014 20:30:22 +0000 (22:30 +0200)]
Fix tile in the wrong layer

10 years agoMove the invisible block in Via Nostalgica. Its current position reminds me too much...
Mathnerd314 [Sun, 3 Aug 2014 19:36:32 +0000 (21:36 +0200)]
Move the invisible block in Via Nostalgica. Its current position reminds me too much of https://youtube.com/watch?v=koMIQipNbeA#t=76

Quoting from the video: "And UP... What? Who put that there? **** <restart>"

Since it's level 3, we don't want to scare people away too quickly.

10 years agoFix egg sprite
Mathnerd314 [Sun, 3 Aug 2014 19:20:10 +0000 (21:20 +0200)]
Fix egg sprite

10 years agoFixed some std::unique_ptr<> issues
Ingo Ruhnke [Sun, 3 Aug 2014 17:46:20 +0000 (19:46 +0200)]
Fixed some std::unique_ptr<> issues

10 years agoUpdated source and include directories for tinygettext in CMakeLists.txt
Ingo Ruhnke [Sun, 3 Aug 2014 17:30:06 +0000 (19:30 +0200)]
Updated source and include directories for tinygettext in CMakeLists.txt

10 years agoUpdated to version 79b7bde of tinygettext
Ingo Ruhnke [Sun, 3 Aug 2014 17:29:45 +0000 (19:29 +0200)]
Updated to version 79b7bde of tinygettext

10 years agoReplaced std::auto_ptr<> with std::unique_ptr<>
Ingo Ruhnke [Sun, 3 Aug 2014 17:05:09 +0000 (19:05 +0200)]
Replaced std::auto_ptr<> with std::unique_ptr<>

10 years agoEnabled C++11 support
Ingo Ruhnke [Sun, 3 Aug 2014 16:29:46 +0000 (18:29 +0200)]
Enabled C++11 support

10 years agoUse TARGET_INCLUDE_DIRECTORIES instead of INCLUDE_DIRECTORIES for SDL2, fixed MARK_AS...
Ingo Ruhnke [Sun, 3 Aug 2014 18:42:33 +0000 (20:42 +0200)]
Use TARGET_INCLUDE_DIRECTORIES instead of INCLUDE_DIRECTORIES for SDL2, fixed MARK_AS_ADVANCED()

10 years agoMerge branch 'master' of https://code.google.com/p/supertux
Mathnerd314 [Sun, 3 Aug 2014 18:33:52 +0000 (20:33 +0200)]
Merge branch 'master' of https://code.google.com/p/supertux

Conflicts:
CMakeLists.txt

10 years agoMerge branch 'master' of https://code.google.com/p/supertux
Mathnerd314 [Sun, 3 Aug 2014 18:29:32 +0000 (20:29 +0200)]
Merge branch 'master' of https://code.google.com/p/supertux

Conflicts:
src/supertux/main.cpp

Modified CMakeLists.txt to actually build properly

10 years agoRemoved accidental supertux2 from LINK_LIBRARIES()
Ingo Ruhnke [Sun, 3 Aug 2014 18:26:31 +0000 (20:26 +0200)]
Removed accidental supertux2 from LINK_LIBRARIES()

10 years agoChanged deprecated -%pure_parser to +%pure-parser in parser.yy
Ingo Ruhnke [Sun, 3 Aug 2014 18:26:09 +0000 (20:26 +0200)]
Changed deprecated -%pure_parser to +%pure-parser in parser.yy

10 years agoFlesh out the intro scene some more.
Mathnerd314 [Sun, 3 Aug 2014 17:47:10 +0000 (19:47 +0200)]
Flesh out the intro scene some more.
* Tux actually does stuff during the music
* Dialogue

Also some misc. tweaks to silence GCC warnings (parser.cpp and main.cpp)

10 years agoMerge branch 'master' of https://code.google.com/p/supertux
Ingo Ruhnke [Sun, 3 Aug 2014 04:49:40 +0000 (06:49 +0200)]
Merge branch 'master' of https://code.google.com/p/supertux

10 years agoExit loop when font definition contains more characters then the image has data to...
Ingo Ruhnke [Sun, 3 Aug 2014 04:42:05 +0000 (06:42 +0200)]
Exit loop when font definition contains more characters then the image has data to avoid crash

10 years agoRolled file back to version from master, due to improper merge
Ingo Ruhnke [Sun, 3 Aug 2014 04:01:38 +0000 (06:01 +0200)]
Rolled file back to version from master, due to improper merge

10 years agoFixed compiler warnings
Ingo Ruhnke [Sun, 3 Aug 2014 04:00:20 +0000 (06:00 +0200)]
Fixed compiler warnings

10 years agoReplaced old SDL1 surface flags with 0
Ingo Ruhnke [Sun, 3 Aug 2014 04:00:02 +0000 (06:00 +0200)]
Replaced old SDL1 surface flags with 0

10 years agoMerge branch 'feature/sdl2'
Ingo Ruhnke [Sun, 3 Aug 2014 03:44:02 +0000 (05:44 +0200)]
Merge branch 'feature/sdl2'

Conflicts:
.gitignore
WHATSNEW.txt
data/fonts/zh-white-big.stf
data/fonts/zh-white.stf
data/images/engine/fonts/zh/shadow.png
data/images/engine/fonts/zh/white.png
data/images/powerups/egg/egg.sprite
data/images/tiles.strf
data/levels/bonus1/az.po
data/levels/bonus1/ne.po
data/levels/bonus1/sv.po
data/levels/bonus2/az.po
data/levels/bonus2/pt_BR.po
data/levels/incubator/az.po
data/levels/incubator/de.po
data/levels/incubator/nn.po
data/levels/incubator/pt_BR.po
data/levels/incubator/ru.po
data/levels/incubator/sv.po
data/levels/incubator/worldmap.stwm
data/levels/world1/ar.po
data/levels/world1/az.po
data/levels/world1/be.po
data/levels/world1/ca.po
data/levels/world1/cmn.po
data/levels/world1/cs.po
data/levels/world1/da.po
data/levels/world1/de.po
data/levels/world1/el.po
data/levels/world1/eo.po
data/levels/world1/es.po
data/levels/world1/et.po
data/levels/world1/fi.po
data/levels/world1/fr.po
data/levels/world1/hi_IN.po
data/levels/world1/hr.po
data/levels/world1/hu.po
data/levels/world1/it.po
data/levels/world1/ja.po
data/levels/world1/lt.po
data/levels/world1/nb.po
data/levels/world1/ne.po
data/levels/world1/nl.po
data/levels/world1/nn.po
data/levels/world1/pl.po
data/levels/world1/pt.po
data/levels/world1/pt_BR.po
data/levels/world1/ro.po
data/levels/world1/ru.po
data/levels/world1/sl.po
data/levels/world1/sv.po
data/levels/world1/tr.po
data/levels/world1/uk.po
data/levels/world1/uz.po
data/levels/world1/vi.po
data/levels/world1/zh_CN.po
data/levels/world1/zh_TW.po
data/levels/world2/az.po
data/levels/world2/cs.po
data/levels/world2/de.po
data/levels/world2/hu.po
data/levels/world2/nn.po
data/levels/world2/pt_BR.po
data/levels/world2/sv.po
data/locale/ar.po
data/locale/az.po
data/locale/be.po
data/locale/ca.po
data/locale/cmn.po
data/locale/cs.po
data/locale/da.po
data/locale/de.po
data/locale/el.po
data/locale/eo.po
data/locale/es.po
data/locale/et.po
data/locale/fi.po
data/locale/fr.po
data/locale/hi_IN.po
data/locale/hr.po
data/locale/hu.po
data/locale/it.po
data/locale/ja.po
data/locale/lt.po
data/locale/nb.po
data/locale/ne.po
data/locale/nl.po
data/locale/nn.po
data/locale/pl.po
data/locale/pt.po
data/locale/pt_BR.po
data/locale/ro.po
data/locale/ru.po
data/locale/sl.po
data/locale/sv.po
data/locale/tr.po
data/locale/uk.po
data/locale/uz.po
data/locale/vi.po
data/locale/zh_CN.po
data/locale/zh_TW.po
external/squirrel/squirrel/sqdebug.cpp
src/object/bonus_block.cpp
src/object/explosion.cpp
src/object/player.cpp
src/supertux/game_session.cpp
src/supertux/level.cpp
src/supertux/main.cpp
src/supertux/resources.cpp
src/video/sdl/sdl_renderer.cpp
src/worldmap/worldmap.cpp

10 years agoMoved some aspect ratio calculations into video/util.cpp
Ingo Ruhnke [Sun, 3 Aug 2014 03:01:18 +0000 (05:01 +0200)]
Moved some aspect ratio calculations into video/util.cpp

10 years agoReimplemented magnification and aspect ratio handling
Ingo Ruhnke [Fri, 1 Aug 2014 19:01:22 +0000 (21:01 +0200)]
Reimplemented magnification and aspect ratio handling

10 years agoOnly rotate egg when its actually moving (velocity <> 0)
Tobias Markus [Fri, 1 Aug 2014 21:39:13 +0000 (23:39 +0200)]
Only rotate egg when its actually moving (velocity <> 0)

10 years agoFixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong color...
Ingo Ruhnke [Fri, 1 Aug 2014 18:02:14 +0000 (20:02 +0200)]
Fixed surfaces not getting properly converted to textures in OpenGL (i.e. wrong colors on worldmap)

10 years agoReverted 91c1517 and reinserted the old mouse cursor code
Ingo Ruhnke [Fri, 1 Aug 2014 17:32:30 +0000 (19:32 +0200)]
Reverted 91c1517 and reinserted the old mouse cursor code

With SDL_RenderSetLogicalSize() gone the old mouse code works again
and it doesn't glitch the mouse pointer on magnification changes as
the new code does.

10 years agoReplaced SDL_RenderSetLogicalSize(), removed PHYSICAL_SCREEN_WIDTH/HEIGHT, improved...
Ingo Ruhnke [Fri, 1 Aug 2014 17:25:17 +0000 (19:25 +0200)]
Replaced SDL_RenderSetLogicalSize(), removed PHYSICAL_SCREEN_WIDTH/HEIGHT, improved mouse handling when using magnification

10 years agoRemoved foobar from Renderer::to_logical(), it's no longer needed
Ingo Ruhnke [Fri, 1 Aug 2014 16:57:09 +0000 (18:57 +0200)]
Removed foobar from Renderer::to_logical(), it's no longer needed

10 years agoRemoved platform specific path magic and use SDL_GetBasePath() instead (untested)
Ingo Ruhnke [Fri, 1 Aug 2014 16:26:40 +0000 (18:26 +0200)]
Removed platform specific path magic and use SDL_GetBasePath() instead (untested)

10 years agoAdded fullscreen switching to SDLRenderer
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:41 +0000 (04:14 +0200)]
Added fullscreen switching to SDLRenderer

10 years agoMinor cleanup
Ingo Ruhnke [Fri, 1 Aug 2014 02:14:32 +0000 (04:14 +0200)]
Minor cleanup

10 years agoUse better filtering for scaling in SDL
Ingo Ruhnke [Fri, 1 Aug 2014 02:07:02 +0000 (04:07 +0200)]
Use better filtering for scaling in SDL

10 years agoClear the screen to avoid garbage in unreachable areas after we reset the coordinate...
Ingo Ruhnke [Fri, 1 Aug 2014 01:48:24 +0000 (03:48 +0200)]
Clear the screen to avoid garbage in unreachable areas after we reset the coordinate system

10 years agoPass mouse coordinates to mouse pointer manually instead of SDL_GetMouseState(),...
Ingo Ruhnke [Fri, 1 Aug 2014 01:43:48 +0000 (03:43 +0200)]
Pass mouse coordinates to mouse pointer manually instead of SDL_GetMouseState(), see bug #2442 in SDL2

10 years agoCleaned up coordinate translation a little, SDL mouse handling is still broken and...
Ingo Ruhnke [Thu, 31 Jul 2014 21:51:14 +0000 (23:51 +0200)]
Cleaned up coordinate translation a little, SDL mouse handling is still broken and SDL_RenderGetViewport() doesn't seem to return proper values

10 years agoImplemented window scaling in SDLRenderer, mouse input however breaks when scaling
Ingo Ruhnke [Thu, 31 Jul 2014 20:17:16 +0000 (22:17 +0200)]
Implemented window scaling in SDLRenderer, mouse input however breaks when scaling

10 years agoUse SCREEN_WIDTH/HEIGHT instead of SDL_RendererGetViewport(), as logical coordinates...
Ingo Ruhnke [Thu, 31 Jul 2014 19:43:44 +0000 (21:43 +0200)]
Use SCREEN_WIDTH/HEIGHT instead of SDL_RendererGetViewport(), as logical coordinates might be different then physical

10 years agoImplemented support for different blend modes in SDL
Ingo Ruhnke [Thu, 31 Jul 2014 19:27:38 +0000 (21:27 +0200)]
Implemented support for different blend modes in SDL

10 years agoImplemented sprite rotations for SDLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 19:12:03 +0000 (21:12 +0200)]
Implemented sprite rotations for SDLRenderer

10 years agoMerged drawing code from SDLLightmap and SDLRenderer into helper class SDLPainter
Ingo Ruhnke [Thu, 31 Jul 2014 19:03:59 +0000 (21:03 +0200)]
Merged drawing code from SDLLightmap and SDLRenderer into helper class SDLPainter

10 years agoRemoved pointless check for screen mode change, as we are creating the window for...
Ingo Ruhnke [Thu, 31 Jul 2014 06:26:21 +0000 (08:26 +0200)]
Removed pointless check for screen mode change, as we are creating the window for the first and only time at that point

10 years agoImplemented desktop_size discovery in GLRenderer
Ingo Ruhnke [Thu, 31 Jul 2014 06:21:23 +0000 (08:21 +0200)]
Implemented desktop_size discovery in GLRenderer

10 years agoFixed typo that made mouse clicks not function properly
Ingo Ruhnke [Thu, 31 Jul 2014 05:58:04 +0000 (07:58 +0200)]
Fixed typo that made mouse clicks not function properly

10 years agoImplemented fullscreen mode selection, OpenGL only for the moment
Ingo Ruhnke [Thu, 31 Jul 2014 05:01:43 +0000 (07:01 +0200)]
Implemented fullscreen mode selection, OpenGL only for the moment

10 years agoReenabled vsync and some other OpenGL attributes
Ingo Ruhnke [Thu, 31 Jul 2014 04:25:58 +0000 (06:25 +0200)]
Reenabled vsync and some other OpenGL attributes

10 years agoFixed window resize in OpenGL and added window resize to SDL renderer
Ingo Ruhnke [Thu, 31 Jul 2014 04:02:55 +0000 (06:02 +0200)]
Fixed window resize in OpenGL and added window resize to SDL renderer

10 years agoFixed window title and icon, removed Renderer and Lightmap creation from DrawingConte...
Ingo Ruhnke [Thu, 31 Jul 2014 03:23:41 +0000 (05:23 +0200)]
Fixed window title and icon, removed Renderer and Lightmap creation from DrawingContext and moved it to top-level init code

10 years agoImplemented Texture color modification
Ingo Ruhnke [Thu, 31 Jul 2014 03:21:32 +0000 (05:21 +0200)]
Implemented Texture color modification

10 years agoImplemented SDLLightmap::get_light(), haven't tested it
Ingo Ruhnke [Thu, 31 Jul 2014 02:38:50 +0000 (04:38 +0200)]
Implemented SDLLightmap::get_light(), haven't tested it

10 years agoAdded PHYSICAL_SCREEN_WIDTH global variable, little ugly, but should do for now,...
Ingo Ruhnke [Thu, 31 Jul 2014 02:37:42 +0000 (04:37 +0200)]
Added PHYSICAL_SCREEN_WIDTH global variable, little ugly, but should do for now, still needs to be updated properly on window resize

10 years agoImplemented basic lightmap rendering, still a bit of an incomplete hack job, drawing...
Ingo Ruhnke [Thu, 31 Jul 2014 01:02:19 +0000 (03:02 +0200)]
Implemented basic lightmap rendering, still a bit of an incomplete hack job, drawing code should be merged with SDLRenderer

10 years agoPrint some debug info for the created SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 20:11:37 +0000 (22:11 +0200)]
Print some debug info for the created SDL_Renderer

10 years agoRemoved unused GUI classes Button and ButtonGroup
Ingo Ruhnke [Wed, 30 Jul 2014 18:55:31 +0000 (20:55 +0200)]
Removed unused GUI classes Button and ButtonGroup

10 years agoFixed text input in console, console itself doesn't handle unicode correctly, so...
Ingo Ruhnke [Wed, 30 Jul 2014 18:43:16 +0000 (20:43 +0200)]
Fixed text input in console, console itself doesn't handle unicode correctly, so weird stuff happens when pressing umlauts

10 years agoFixed crash when enabling console
Ingo Ruhnke [Wed, 30 Jul 2014 18:32:30 +0000 (20:32 +0200)]
Fixed crash when enabling console

10 years agoHooked up window resize event (not yet implemented in Renderer)
Ingo Ruhnke [Wed, 30 Jul 2014 18:25:46 +0000 (20:25 +0200)]
Hooked up window resize event (not yet implemented in Renderer)

10 years agoImplemented set_gamma()
Ingo Ruhnke [Wed, 30 Jul 2014 18:20:51 +0000 (20:20 +0200)]
Implemented set_gamma()

10 years agoUse fullscreen and resolution config in SDLRenderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:58:17 +0000 (19:58 +0200)]
Use fullscreen and resolution config in SDLRenderer

10 years agoRemoved OLD_SDL1 software rendering code from SDL_Renderer
Ingo Ruhnke [Wed, 30 Jul 2014 17:57:56 +0000 (19:57 +0200)]
Removed OLD_SDL1 software rendering code from SDL_Renderer

10 years agoRemoved lots of OLD_SDL1 software rendering code from SDLTexture
Ingo Ruhnke [Wed, 30 Jul 2014 17:48:00 +0000 (19:48 +0200)]
Removed lots of OLD_SDL1 software rendering code from SDLTexture