• Show log

    Commit

  • Hash : 84808ea4
    Author : David Gow
    Date : 2021-10-22T17:48:32

    video: Add SDL_PremultiplySurfaceAlphaToARGB8888()
    
    A number of video backends need to get ARGB8888 formatted surfaces with
    premultiplied alpha, typically for mouse cursors. Add a new function to
    do this, based loosely on legacy_alpha_premultiply_ARGB8888() from the
    KMSDRM backend.
    
    The new function, SDL_PremultiplySurfaceAlphaToARGB8888() takes two
    arguments:
    - src: an SDL_Surface to be converted.
    - dst: a buffer which is filled with premultiplied ARGB8888 data of the
      same size as the surface (assuming pitch = w).
    
    This is not heavily optimised: it just repeatedly calls SDL_GetRGBA() to
    do the conversion, but should do for now.
    

  • 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)