Announcement

Collapse
No announcement yet.

SDL2 Plans With Wayland, SDL3 Already On The Mind

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SDL2 Plans With Wayland, SDL3 Already On The Mind

    Phoronix: SDL2 Plans With Wayland, SDL3 Already On The Mind

    While SDL 2.0 was finally released this week after being in development for years, future SDL 2.x features and changes are already being plotted and even some early thoughts concerning SDL 3.x for game developers and other cross-platform developers relying upon this important Simple DirectMedia Layer library...

    http://www.phoronix.com/vr.php?view=MTQzNjU

  • #2
    So...... this might be a crazy idea...... and I have no idea if this is even possible........ but could someone, if they wanted too, build a whole DE on top of SDL2.0? Since it will support so many different graphics frameworks (Wayland, Mir, Xorg, ect).... could you just write once for SDL2.0 and have it work everywhere?

    Comment


    • #3
      Originally posted by dh04000 View Post
      So...... this might be a crazy idea...... and I have no idea if this is even possible........ but could someone, if they wanted too, build a whole DE on top of SDL2.0? Since it will support so many different graphics frameworks (Wayland, Mir, Xorg, ect).... could you just write once for SDL2.0 and have it work everywhere?
      well prolly not only with SDL since is a layer that rest between graphical server and the toolkits. probably could be done but it will take way more work than just use a proper toolkit with SDL support

      Comment


      • #4
        Tiny thing about multiple mouse and keyboard support.
        Would like if one application only supports one mouse and keyboard it can deal with multiple ones.
        Have SDL only use the mouse keyboard that's last selected for that application be used.
        It's flexible, adaptable very convenient.

        Comment


        • #5
          Originally posted by dh04000 View Post
          So...... this might be a crazy idea...... and I have no idea if this is even possible........ but could someone, if they wanted too, build a whole DE on top of SDL2.0?
          In theory, nothing is impossible.

          In practice: this is going to be a very tedious task.

          Other toolkits (Qt, GTK, ...) are designed with GUI application in mind. They are designed around buttons, menus, forms... and designed to manage multiple windows, dialog boxes, etc. You get all the building blocks for a DE, but not much for a game where you don't care about button, you only want to display things directly on the screen.
          SDL is designed with giving low-level access to multimedia hardware in a standard fashion (Think DirectDraw, DirectSound and the various other "Direct-something" parts of DirectX). It's designed around sufaces, blits, frame synchronisation, managing context for OpenGL to render in them, etc. all this to diplayed into a single full-screen application, or maybe a game in windowed mode. Only very recently with SDL can you finally have an application open more than 1 window. You get all the building blocks for a game, but not much for a DE, nor even a GUI App. With SDL , you'll need to actually code from scratch everything that is going to be displayed on screen, and your only reference material and examples are million of... games 2D or 3D engines.

          Asking if a DE can be done on SDL is like asking if a DE could be done on OpenGL.

          So yes, it's possible, as in : you'll need to code all your button, menus, forms, windows and dialogue boxes from scratch.

          Comment


          • #6
            Originally posted by DrYak View Post
            So yes, it's possible, as in : you'll need to code all your button, menus, forms, windows and dialogue boxes from scratch.
            You could make them abstract/reusable ... and end up having another toolkit just like GTK or QT. If someone really wanted to do that, he'd better off pushing SDL into QT/GTK as a backend then. It'd be still questionable, whether that makes that much sense ;P

            I don't know about the future of X, but if it remains, we'll (probably) have 3 display servers. You might think about an abstraction layer for display servers then ...

            Comment


            • #7
              Originally posted by dh04000 View Post
              So...... this might be a crazy idea...... and I have no idea if this is even possible........ but could someone, if they wanted too, build a whole DE on top of SDL2.0? Since it will support so many different graphics frameworks (Wayland, Mir, Xorg, ect).... could you just write once for SDL2.0 and have it work everywhere?
              What do you mean by build a whole DE on top of SDL? If you mean writing a compositor, then no, compositors don't need the features of SDL to begin with. If you mean assembling a bunch of programs that use SDL, then in theory it's possible, but you'd be hard pressed to find people crazy enough to write GUI apps with SDL. And the result would also be very incoherent, with each application having different looks entirely. It's much more realistic to just add Wayland and Mir backends to all the current GUI toolkits instead.

              Comment


              • #8
                Originally posted by dh04000 View Post
                So...... this might be a crazy idea...... and I have no idea if this is even possible........ but could someone, if they wanted too, build a whole DE on top of SDL2.0? Since it will support so many different graphics frameworks (Wayland, Mir, Xorg, ect).... could you just write once for SDL2.0 and have it work everywhere?
                This isn't the same thing but it might interest you to know that there used to be an X server implementation built on SDL called Xsdl.

                Comment


                • #9
                  Oh, I need that PS4 port.

                  Comment


                  • #10
                    Didn't the last article said it supported 7.1 audio already?

                    Comment


                    • #11
                      Yes, but the documentation says it's not.

                      http://wiki.libsdl.org/moin.fcg/SDL_AudioSpec#Remarks:
                      channels specifies the number of output channels. As of SDL 2.0, supported values are 1 (mono), 2 (stereo), 4 (quad), and 6 (5.1).
                      /edit:
                      http://wiki.libsdl.org/moin.fcg/Roadmap#Audio
                      The roadmap says it's completed sooo... someone has to try
                      Last edited by droste; 08-14-2013, 09:01 PM.

                      Comment


                      • #12
                        Great

                        Sounds really good!

                        Sounds like SDL is getting more features and broadening and becoming something a bit reminiscent of DirectX...

                        Comment


                        • #13
                          Its the strategy of company that they launch their new product with competitor. Company intelligence keep in watch what the competitor is doing and start to upgrade their technology to compete in the market.

                          Comment


                          • #14
                            Originally posted by markede View Post
                            Its the strategy of company that they launch their new product with competitor. Company intelligence keep in watch what the competitor is doing and start to upgrade their technology to compete in the market.
                            Any Comments?

                            Comment

                            Working...
                            X