Menu

#3 SDL2 Support

open
nobody
SDL2 (1)
5
2015-07-28
2015-07-21
L Michaels
No

If anyone else is interested in support for SDL2 as well as SDL, I have patches to add SDL2 support to SDL_Draw. Am not able to get all the programs that have SDL_Draw as a dependency to build with SDL2. If others are interested in the patches, let me know.

Discussion

  • Mario Palomo

    Mario Palomo - 2015-07-21

    Hi,

    I am one of the principal creators of the original SDL_Draw code. I'm interested in the patches to support SDL2. Do the patches add suppport to both SDL and SDL2 at once?

     
  • L Michaels

    L Michaels - 2015-07-25

    On Tue, July 21, 2015 11:14 am, Mario Palomo wrote:

    I am one of the principal creators of the original SDL_Draw code. I'm
    interested in the patches to support SDL2. Do the patches add suppport to
    both SDL and SDL2 at once?

    With the patches, I can build a library that supports SDL2 or I can build
    a library that supports SDL. I slightly renamed the SDL2 version of the
    library, so that both libraries can coexist and someone can decide which
    one they want to link with.

    I can e-mail the patches so you can look at them or I can upload them to a
    temporary web location so you can access them from there, if you're
    interested.

    Really like working with the SDL_Draw library. It makes it a lot easier
    to draw objects with SDL. Thanks for creating it.

    Sincerely,
    Laura
    http://www.distasis.com/cpp

     
  • Mario Palomo

    Mario Palomo - 2015-07-28

    Ok, I'd like to see the patches (you can send them to where you think is best), and if everything is correct I could give you write access to SDL_Draw code repository, if you are interested in collaborating, of course.

    This is an old project and is not actively maintained, but I think that the code works perfectly. Maybe you can have it more updated, if you want to participate: I don't think it takes too time. If you are busy and prefer not to be on the development team, I'll understand.

     
  • L Michaels

    L Michaels - 2015-08-09

    On Tue, July 28, 2015 2:30 am, Mario Palomo wrote:

    Ok, I'd like to see the patches (you can send them to where you think is
    best), and if everything is correct I could give you write access to
    SDL_Draw code repository, if you are interested in collaborating, of
    course.

    This is an old project and is not actively maintained, but I think that
    the code works perfectly. Maybe you can have it more updated, if you want
    to participate: I don't think it takes too time. If you are busy and
    prefer not to be on the development team, I'll understand.

    I also think the code works perfectly well in SDL projects. I wanted to
    be able to use it for SDL2 as well since it made certain functionality
    like drawing lines and circles much easier to work with. Had to make some
    minor changes because you now have to track textures and renderers and
    windows as well as surfaces with SDL2. Other than that, everything's the
    same.

    I've put my changes up on a Google Drive so you can download and look
    at/use them. It's set for share, but if you have any problems accessing
    them let me know.

    https://drive.google.com/folderview?id=0BztNpHHkWwHKfjhFRnpaNmxaUUZubGRscGx5VURBeS1wakRvM2RGUEN0eFd0eDl1OFdGRGM&usp=sharing

    I'm using a build tool, so sdl_drawbld.zip contains the input to the build
    tool. It has patches and other information related to the build process.
    The build tool generates a bash file with all the commands necessary to
    generate a tarball from the source and patches (similar to Slackbuilds)
    for a particular target system/platform. The sdl_drawbldmingw.zip file
    contains the bash file and patches to build SDL_Draw using SDL2, MinGW and
    msys on Windows. It renames files where necessary to avoid collisions
    with the SDL version. The sdl_drawbldmingwsdl.zip contains the bash file
    and patches to build SDL_Draw using SDL, mingw and msys on Windows. I can
    generate outputs for Linux, BSD, etc. as well. I used cdetect and the
    makefiles generated by the build tool in place of the
    autoconf/automake/configure/make style scripts. Current configure/make
    that comes with SDL_Draw works fine for SDL. If you do a search for SDL
    and replace with SDL2 in the configure file using sed or perl, it works
    fine for SDL2 as well. One would need to rename files to avoid collisions
    between the SDL2 version and the SDL version using configure this way.

    If you're interested in adding the patches to the SDL_Draw project, you're
    welcome to. I'm working with an Open Source program that's currently
    using SDL_Draw to draw audio waveforms. I need to update some of my
    systems to SDL2 instead of SDL, so I needed these patches to port the
    audio program to SDL2. I'm still using SDL on some systems, so I
    definitely wanted to make sure any changes worked for both SDL and SDL2.

    Thanks again for making SDL_draw available to everyone. It is a very
    useful library that can save a lot of time when it comes to drawing with
    SDL. Hope it continues to be useful with SDL2 projects.

    Sincerely,
    Laura

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.