• Show log

    Commit

  • Hash : 5e19e66c
    Author : Sam Lantinga
    Date : 2019-12-22T13:39:44

    Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode
    
    Konrad
    
    This was something rather trivial to add, but asked at least several times before (I did google about it as well).
    
    It should be possible to dynamically change scaling mode of the texture. It is actually trivial task, but until now it was only possible with a hint before creating a texture.
    
    I needed it for my game as well, so I took the liberty of writing it myself.
    
    This patch adds following functions:
    
    SDL_SetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode scaleMode);
    SDL_GetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode *scaleMode);
    
    That way you can change texture scaling on the fly.
    

  • 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 thodg_l www_kmx_io thodg
    Tags

  • README.txt

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