Page 1 of 2

(GSoC 2024) SDL2 Library

Posted: Thu May 23, 2024 2:34 am
by arnavbhatt288
Hi there. I am porting SDL2 library to KolibriOS as a Contributor of GSoC 2024, for Kolibri Project Team.

Main repo: https://github.com/arnavbhatt288/sdl2-k ... ge-Kolibri
SDL_image: https://github.com/arnavbhatt288/SDL_mixer-Kolibri
SDL_ttf: https://github.com/arnavbhatt288/SDL_ttf-Kolibri
Project details: https://summerofcode.withgoogle.com/pro ... s/U7cf4oma

This board topic will get posts about information related to the progress of this project for everyone to see, as well as this will aid others for asking questions from me.

Re: SDL2 Library

Posted: Thu May 23, 2024 2:39 am
by arnavbhatt288
Currently, I have made a working audio driver for SDL2:
Downloaded 189 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.

Re: SDL2 Library

Posted: Sun May 26, 2024 2:57 am
by arnavbhatt288
Playing a WAV file through SDL2 (without using SDL_mixer) on KolibriOS:
wav file demo
Downloaded 202 times

The program itself:
playwav.zip (1.75 KiB)
Downloaded 193 times
I have yet to push changes to my repository for audio support though.

Re: (GSoC 2024) SDL2 Library

Posted: Sat Jun 01, 2024 2:16 am
by arnavbhatt288
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 186 times

Re: (GSoC 2024) SDL2 Library

Posted: Mon Jun 10, 2024 12:26 am
by Sweetbread
Hi! May I make a mirror of your repo on official KOS's git host?

Re: (GSoC 2024) SDL2 Library

Posted: Mon Jun 10, 2024 2:19 am
by arnavbhatt288
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?

Re: (GSoC 2024) SDL2 Library

Posted: Tue Jun 11, 2024 1:32 am
by arnavbhatt288
Video subsystem for SDL2 is now functional. Loading a bitmap file as a texture for test:
Downloaded 204 times
Now, keyboard and mouse events are being implemented.

Re: (GSoC 2024) SDL2 Library

Posted: Sun Jun 16, 2024 11:18 pm
by arnavbhatt288
Keyboard and mouse event is now implemented.

Keyboard event:
Downloaded 150 times
Mouse button event:
mouse_event.mp4 (292.21 KiB)
Downloaded 144 times
Mouse hover event:
Downloaded 142 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 15223 times

Re: (GSoC 2024) SDL2 Library

Posted: Sun Jun 16, 2024 11:28 pm
by arnavbhatt288
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 145 times

Video subsystem changes will be pushed to the repository sooner.

Re: (GSoC 2024) SDL2 Library

Posted: Mon Jun 17, 2024 2:28 am
by arnavbhatt288
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

Re: (GSoC 2024) SDL2 Library

Posted: Thu Jun 20, 2024 12:07 am
by arnavbhatt288
Clipboard support has been added.

Copying text from a SDL2 program:
Downloaded 148 times
Pasting text from a SDL2 program:
Downloaded 157 times

Required changes have been pushed to the repository:
https://github.com/arnavbhatt288/sdl-2. ... e52458357a

Re: (GSoC 2024) SDL2 Library

Posted: Sun Jun 23, 2024 1:08 am
by arnavbhatt288
Filesystem driver has been implemented (https://github.com/arnavbhatt288/sdl-2. ... 11ac6933d6):
filesystem.png
filesystem.png (80.65 KiB)
Viewed 15125 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)

Re: (GSoC 2024) SDL2 Library

Posted: Thu Jul 11, 2024 1:06 am
by arnavbhatt288
First ever SDL2 program ported to KolibriOS is LakeSnes: A SNES emulator written in C with SDL2.
output.mp4 (3.15 MiB)
Downloaded 159 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 220 times
More things are coming up!

Re: (GSoC 2024) SDL2 Library

Posted: Mon Jul 22, 2024 2:15 am
by arnavbhatt288
SDL2_image has been ported to KolibriOS. Loading a png file:
loading_png.png
loading_png.png (64.33 KiB)
Viewed 14217 times

Re: (GSoC 2024) SDL2 Library

Posted: Wed Jul 24, 2024 12:09 am
by arnavbhatt288
SDL_ttf has been ported to KolibriOS:
ttf.png
ttf.png (74.15 KiB)
Viewed 14122 times