Menu

#8 SDL OpenGL Rendering Patch

open
Generic (7)
5
2005-01-26
2005-01-26
No

I wanted to be able to use sizes >2x along with
filtering options, and OpenGL was what came to mind. I
tried to make the patch portable across OS's, but it's
only been tested on Linux and is submitted on a "works
for me" basis.

Discussion

  • Walter Mundt

    Walter Mundt - 2005-01-26

    patch to add OpenGL rendering option to SDL port

     
  • El Pelos

    El Pelos - 2005-01-29

    Logged In: YES
    user_id=817486

    Good work , you made me learn a lesson about open source:
    "don't let code rot in your hd".

    Some months ago I added opengl support to visualboy I didn't
    release a patch because I wanted the code to be good/clean
    enough.

    Your patch failed in configure , it checked 3 times for
    opengl support (it might have been my fault since I don't
    know patch too well) , anyway I used the configure.in from
    my patch (I just modified configure.in to do my patch I
    think there's no need to alter makefile.am as you do in your
    patch).

    I used glTexImage2D instead as glTexsubImage2D , there's no
    difference on performance (at least on my machine) , but
    glTexsubImage2D allows non power of two updates so this is
    where your patch beats mine.

    With your patch when you switch to fullscreen the whole
    screen remains black , check the case of CTRL+F in void
    sdlPollEvents().

    To project maintainers: I think ethermage's patch is ok , I
    will gladly add any feature I miss in this patch , like
    linear / nearest filter selection , custom resolution
    selection , keep aspect ratio ...feel free to sugest anything.

     

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.