-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an initial (mostly working) port to SDL2.
By default SDL1.2 is still used, but by chaning the config.make option, SDL2 is used instead as a build-time option. What works, what doesn't? Working fine: Joystick input Mouse input Keyboard input Sound Fullscreen mode-switching - now working Issues: Fullscreen (native resolution) *mostly* (there is often some flickering, switching back and forth fixes it. Needs investigating.) Okay, I think this is related to the problems with the splash screen. There's a problem with the GL bounds I think. I'm not an OpenGL expert by any means, so I'm not sure what the problem is. Splash screen - code is there and no longer prevents startup. It works sometimes. Usually the first time. Always works under wayland (with the Wayland SDL video backend), see below. Windows support is untested. I tried not to break it. Wayland - I will test this shortly, it works, even the splash screen! There were some issues resizing under Weston, lack of SSD makes it tricky anyway! Worked fine under Enlightenment/Wayland. Android/iPhone, obscure devices ... Probably needs OpenGL ES ... maybe it just works like Wayland. There is a lot of code that could be simplified, in particular it's possible the SDL2 Windows support works...? Testers/reviewers more than welcome! Especially help with the GL issues mentioned above.
- Loading branch information
Showing
7 changed files
with
299 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,7 +151,6 @@ enum { | |
//SDL Abstracted constants | ||
|
||
#if OOLITE_SDL | ||
|
||
#import <SDL.h> | ||
|
||
enum | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.