(GSoC 2024) SDL2 Library

Discussing libraries simplifying applications development
  • Currently, I have made a working audio driver for SDL2:
    Downloaded 31 times
    The program which randomly generates tones and feeds to an audio buffer, was compiled using SDL2 library.
    The driver needs more work before I will push the changes to my repository though.
  • Playing a WAV file through SDL2 (without using SDL_mixer) on KolibriOS:
    wav file demo
    Downloaded 33 times

    The program itself:
    playwav.zip (1.75 KiB)
    Downloaded 36 times
    I have yet to push changes to my repository for audio support though.
  • Changes for audio support have been pushed to the repository:
    https://github.com/arnavbhatt288/sdl-2. ... 16ff3ee6a4

    A test program is pre-compiled (the playwav program) for demonstrating the audio support:
    Downloaded 19 times
    Last edited by arnavbhatt288 on Mon Jun 17, 2024 2:29 am, edited 1 time in total.
  • Hi! May I make a mirror of your repo on official KOS's git host?
  • Sweetbread wrote: Mon Jun 10, 2024 12:26 am Hi! May I make a mirror of your repo on official KOS's git host?
    Sure, why not?
  • Video subsystem for SDL2 is now functional. Loading a bitmap file as a texture for test:
    Downloaded 18 times
    Now, keyboard and mouse events are being implemented.
  • Keyboard and mouse event is now implemented.

    Keyboard event:
    Downloaded 10 times
    Mouse button event:
    mouse_event.mp4 (292.21 KiB)
    Downloaded 9 times
    Mouse hover event:
    Downloaded 6 times


    Loading cursor through SDL2 is now also supported. This pictures showcases loading default SDL2 cursor:
    photo_2024-06-17_01-46-34.jpg
    photo_2024-06-17_01-46-34.jpg (57.9 KiB)
    Viewed 1065 times
  • arnavbhatt288 wrote: Sun Jun 16, 2024 11:18 pm Keyboard and mouse event is now implemented.

    Keyboard event:
    keyboard_event.mp4

    Mouse button event:
    mouse_event.mp4

    Mouse hover event:
    mouse_hover_event.mp4



    Loading cursor through SDL2 is now also supported. This pictures showcases loading default SDL2 cursor:
    photo_2024-06-17_01-46-34.jpg
    Here is the demo program (contains the pre-compiled binary and the source code):
    handling_events.zip (323.21 KiB)
    Downloaded 6 times

    Video subsystem changes will be pushed to the repository sooner.
  • arnavbhatt288 wrote: Sun Jun 16, 2024 11:28 pm
    arnavbhatt288 wrote: Sun Jun 16, 2024 11:18 pm Keyboard and mouse event is now implemented.

    Keyboard event:
    keyboard_event.mp4

    Mouse button event:
    mouse_event.mp4

    Mouse hover event:
    mouse_hover_event.mp4



    Loading cursor through SDL2 is now also supported. This pictures showcases loading default SDL2 cursor:
    photo_2024-06-17_01-46-34.jpg
    Here is the demo program (contains the pre-compiled binary and the source code):
    handling_events.zip


    Video subsystem changes will be pushed to the repository sooner.
    Video subsystem changes have been pushed to the repository:
    https://github.com/arnavbhatt288/sdl-2. ... 68232f55cc
  • Clipboard support has been added.

    Copying text from a SDL2 program:
    Downloaded 11 times
    Pasting text from a SDL2 program:
    Downloaded 7 times

    Required changes have been pushed to the repository:
    https://github.com/arnavbhatt288/sdl-2. ... e52458357a
  • Filesystem driver has been implemented (https://github.com/arnavbhatt288/sdl-2. ... 11ac6933d6):
    filesystem.png
    filesystem.png (80.65 KiB)
    Viewed 967 times

    Other missing features that were implemented are:
    - Timer support (https://github.com/arnavbhatt288/sdl-2. ... 15c0256fbf)
    - SDL_SetWindowPosition() and SDL_SetWindowSize() support (https://github.com/arnavbhatt288/sdl-2. ... d6ea06ff52)
  • First ever SDL2 program ported to KolibriOS is LakeSnes: A SNES emulator written in C with SDL2.
    output.mp4 (3.15 MiB)
    Downloaded 18 times
    You can use the given zip file to either use pre-compiled binary or compile the program yourself:
    LakeSnes.zip (843.29 KiB)
    Downloaded 18 times
    More things are coming up!
  • SDL2_image has been ported to KolibriOS. Loading a png file:
    loading_png.png
    loading_png.png (64.33 KiB)
    Viewed 59 times
  • Who is online

    Users browsing this forum: No registered users and 0 guests