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.
(GSoC 2024) SDL2 Library
-
Last edited by arnavbhatt288 on Sat Aug 24, 2024 4:46 pm, edited 4 times in total.
Currently, I have made a working audio driver for SDL2:
The driver needs more work before I will push the changes to my repository though.
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:
The program itself: I have yet to push changes to my repository for audio support though.
The program itself: 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:
https://github.com/arnavbhatt288/sdl-2. ... 16ff3ee6a4
A test program is pre-compiled (the playwav program) for demonstrating the audio support:
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?
Sure, why not?Sweetbread wrote: ↑Mon Jun 10, 2024 12:26 am Hi! May I make a mirror of your repo on official KOS's git host?
Video subsystem for SDL2 is now functional. Loading a bitmap file as a texture for test:
Now, keyboard and mouse events are being implemented.Keyboard and mouse event is now implemented.
Keyboard event: Mouse button event: Mouse hover event:
Loading cursor through SDL2 is now also supported. This pictures showcases loading default SDL2 cursor:
Keyboard event: Mouse button event: Mouse hover event:
Loading cursor through SDL2 is now also supported. This pictures showcases loading default SDL2 cursor:
Here is the demo program (contains the pre-compiled binary and the source code):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
Video subsystem changes will be pushed to the repository sooner.
Video subsystem changes have been pushed to the repository:arnavbhatt288 wrote: ↑Sun Jun 16, 2024 11:28 pmHere is the demo program (contains the pre-compiled binary and the source code):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
handling_events.zip
Video subsystem changes will be pushed to the repository sooner.
https://github.com/arnavbhatt288/sdl-2. ... 68232f55cc
Clipboard support has been added.
Copying text from a SDL2 program: Pasting text from a SDL2 program:
Required changes have been pushed to the repository:
https://github.com/arnavbhatt288/sdl-2. ... e52458357a
Copying text from a SDL2 program: Pasting text from a SDL2 program:
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):
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)
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.
You can use the given zip file to either use pre-compiled binary or compile the program yourself:
More things are coming up!SDL2_image has been ported to KolibriOS. Loading a png file:
SDL_ttf has been ported to KolibriOS:
Who is online
Users browsing this forum: No registered users and 3 guests