1. EuSDL3 Released (Preview)
- Posted by Icy_Viking 1 month ago
- 408 views
I have released EuSDL3 based off of the preview SDL3 build 3.1.3
This preview build is mostly stable, however things could change. I have made some demo programs. Everything works as is. I'll keep an eye on it as SDL3 updates. I've also been keeping an eye on SFML3 as well. This wrapper uses Greg's FFI euphoria library to help with handling structs and such.
You can get it from here: https://github.com/gAndy50/EuSDL3
include SDL3.e include std/ffi.e atom w = 800 atom h = 600 atom flags = SDL_WINDOW_RESIZABLE if SDL_Init(SDL_INIT_VIDEO+SDL_INIT_EVENTS) = -1 then puts(1,"Failed to init SDL!\n") abort(0) end if sequence title = "Simple Window - Simple Event (Click 'X' to Close)" atom win = SDL_CreateWindow(title,w,h,flags) atom surface = SDL_GetWindowSurface(win) integer run = 0 atom event = 0 atom event_type = 0 event = allocate_struct(SDL_Event) while run = 0 do while SDL_PollEvent(event) != 0 do event_type = peek_type(event,C_UINT32) if event_type = SDL_EVENT_QUIT then run = 1 end if end while SDL_UpdateWindowSurface(win) end while SDL_DestroySurface(surface) SDL_DestroyWindow(win) SDL_Quit()
2. Re: EuSDL3 Released (Preview)
- Posted by ChrisB (moderator) 1 month ago
- 357 views
Hi Andy
I've looked several times in the github listings, and can't for the life of me find SDL3.e, only the 'sub' includes
Also, could you include everything that you need to include, or links to them, every time you create a new package. Not so much for me, as who doesn't love a good missing lib hunt, but for newcomers to Eu. ffi is not yet part of the standard Eu includes, and since a lot (most) of your new libs use it it would be worthwhile always adding a pointer to that, for instance.
I love everything that you produce by the way, and love playing with them, so please keep them coming. I seem to recall mention somewhere of Icy Viking Games, though I can't seem to find that any more. Do you have any links to any games you've created? I even see you've created wrappers for QB64.
Have you created any games or apps using any of you SDL wrappers (1,2 and 3) - would love to see them.
Just for completeness, and anybody that doesn't know about Gregg's wrappers, you have to install the libffi-euphoria wrapper before SDL3 will work.
https://github.com/ghaberek/libffi-euphoria
https://github.com/libffi/libffi
cheers
Chris
3. Re: EuSDL3 Released (Preview)
- Posted by Icy_Viking 1 month ago
- 322 views
Hi Andy
I've looked several times in the github listings, and can't for the life of me find SDL3.e, only the 'sub' includes
Also, could you include everything that you need to include, or links to them, every time you create a new package. Not so much for me, as who doesn't love a good missing lib hunt, but for newcomers to Eu. ffi is not yet part of the standard Eu includes, and since a lot (most) of your new libs use it it would be worthwhile always adding a pointer to that, for instance.
I love everything that you produce by the way, and love playing with them, so please keep them coming. I seem to recall mention somewhere of Icy Viking Games, though I can't seem to find that any more. Do you have any links to any games you've created? I even see you've created wrappers for QB64.
Have you created any games or apps using any of you SDL wrappers (1,2 and 3) - would love to see them.
Just for completeness, and anybody that doesn't know about Gregg's wrappers, you have to install the libffi-euphoria wrapper before SDL3 will work.
https://github.com/ghaberek/libffi-euphoria
https://github.com/libffi/libffi
cheers
Chris
Thanks for pointing that out, Chris. I must have overlooked that. I've included the ffi library and I've included the SDL3.e file. I don't have any full fledge games out yet, just some demos here and there. I focus a lot on making these wrappers.
EDIT: I never made a SDL 1 wrapper, that wrapper was made a long time ago.
4. Re: EuSDL3 Released (Preview)
- Posted by ChrisB (moderator) 1 month ago
- 300 views
What? You missed one!
Cheers
Chris
5. Re: EuSDL3 Released (Preview)
- Posted by Icy_Viking 1 month ago
- 286 views
What? You missed one!
Cheers
Chris
I hope it is working now.
6. Re: EuSDL3 Released (Preview)
- Posted by ChrisB (moderator) 1 month ago
- 284 views
I've yet to experiment - snatches of time and all that - but will let you know when do.
Cheers
Chris