• Show log

    Commit

  • Hash : ca9a3217
    Author : Ryan C. Gordon
    Date : 2021-09-19T15:47:24

    render: GL/GLES now draw lines almost perfectly matching software renderer.
    
    One place known to differ in a significant way is a single line segment that
    starts and ends on the same point; the GL renderers will light up a single
    pixel here, whereas the software renderer will not. My current belief is this
    is a bug in the software renderer, based on the wording of the docs:
    
    "SDL_RenderDrawLine() draws the line to include both end points."
    
    You can see an example program that triggers that difference in Bug #2006.
    
    As it stands, the GL renderers might _also_ render diagonal lines differently,
    as the the Bresenham step might vary between implementations (one does three
    pixels and then two, the other does two and then three, etc). But this patch
    causes those lines to start and end on the correct pixel, and that's the best
    we can do, and all anyone really needs here.
    
    Not closing any bugs with this patch (yet!), but here are several that it
    appears to fix. If no other corner cases pop up, we'll call this done.
    
    Reference Bug #2006.
    Reference Bug #1626.
    Reference Bug #4001.
    ...and probably others...
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.md

  • Simple DirectMedia Layer (SDL) Version 2.0

    https://www.libsdl.org/

    Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve’s award winning catalog and many Humble Bundle games.

    More extensive documentation is available in the docs directory, starting with README.md

    Enjoy!

    Sam Lantinga (slouken@libsdl.org)