Who's Online
128 user(s) are online (
92 user(s) are browsing
Forums )
Members: 2
Guests: 126
skynet ,
TheMagicSN ,
more...
Headlines
amiarcadia.lha - emulation/gamesystem
Dec 2, 2024
mgba.lha - emulation/gamesystem
Dec 1, 2024
jfduke3d.lha - game/fps
Dec 1, 2024
prboom-plus.lha - game/fps
Dec 1, 2024
iff-converter.lha - graphics/convert
Dec 1, 2024
flashmandelng.lha - graphics/misc
Dec 1, 2024
mce.lha - game/utility
Nov 27, 2024
gif2abk.lha - graphics/misc
Nov 26, 2024
mediavault_script.lha - network/misc
Nov 26, 2024
sacrificopagano.lha - utility/misc
Nov 26, 2024
Topic options
View mode
Newest First
Re: SDL2
Posted on:
2016/1/18 9:49
#41
Just can't stay away
Joined: 2006/11/30 11:30Last Login
: 11/18 16:17
From Finland
Group:
Registered Users
@afxgroup
Quote:
move that file in sdk/newlib/includeI would recommend against that.
The SDK:clib2/include/dlfcn.h file is for clib2 and is incompatible with the newlib libdl.so (while the function prototypes are the same the RTLD_#? constants have different values).
I would also not recommend using shared objects with clib2 as it will likely cause confusion as clib2 shared objects will not be compatible with newlib ones and vice versa.
Re: SDL2
Posted on:
2016/1/18 14:19
#42
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@salass00 "constants have different values" I've got a warning message about this, but it worked. I will do some test asap
Retired
Re: SDL2
Posted on:
2016/1/18 16:23
#43
Quite a regular
Joined: 2013/10/17 16:21Last Login
: Today 16:54
From Hungary
Group:
Registered Users
@AmigaBlitter It worked in a sense that you could compile SDL2, but it could lead to problems if you were to compile a program, that uses SDL functions to load SObjs. Fortunately not many I know does this.
This is just like television, only you can see much further.
Re: SDL2
Posted on:
2016/1/18 18:23
#45
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@Capehill thank you for the tip
Retired
Re: SDL2
Posted on:
2016/1/21 19:48
#46
Just can't stay away
Joined: 2007/7/14 21:30Last Login
: 11/3 18:55
From Lothric
Group:
Registered Users
@all Regarding (window) event handling...with SDL2 we can have multiple windows. There is SDL_PumpEvents() which should update events from video subsystem but it targets the whole subsystem, as far as I understand, and not a specific window. So I guess we will loop the video device's window list and handle the pending events per window, whenever SDL_PumpEvents() gets called, or does anyone have different ideas?
Re: SDL2
Posted on:
2016/1/21 19:59
#47
Just can't stay away
Joined: 2006/11/30 11:30Last Login
: 11/18 16:17
From Finland
Group:
Registered Users
@Capehill Why not just use a shared IDCMP port for all the SDL windows? You can do that very easily now with WA_UserPort and you don't have to worry about signals running out then from opening too many windows.
Re: SDL2
Posted on:
2016/1/22 10:07
#48
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@BSzili Hi, could you please verify the configure script? The other configure script (the one in the test's dir) seems that doesn't work. Can't find the SDL2 libraries and headers path. Perhaps we can configure manually the PKG_CONFIG_PATH?
Retired
Re: SDL2
Posted on:
2016/1/22 10:36
#49
Quite a regular
Joined: 2013/10/17 16:21Last Login
: Today 16:54
From Hungary
Group:
Registered Users
@AmigaBlitter There's nothing wrong with the configure script, just specify the path where the library and headers are.
This is just like television, only you can see much further.
Re: SDL2
Posted on:
2016/1/22 11:04
#50
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@BSzili Thank you for the reply. Where i specify the path? The configure script in the test's dir shouldn't be able to find it automatically?
Retired
Re: SDL2
Posted on:
2016/1/22 17:48
#51
Just can't stay away
Joined: 2007/7/14 21:30Last Login
: 11/3 18:55
From Lothric
Group:
Registered Users
@salass00 Sounds sensible, and actually similar to what SDL1 does I suppose, even though with one window.
Re: SDL2
Posted on:
2016/2/1 20:03
#52
Just can't stay away
Joined: 2007/7/14 21:30Last Login
: 11/3 18:55
From Lothric
Group:
Registered Users
Fullscreen is tricky. I tried to avoid poking SDL_video.c but finally I had to modify CREATE_FLAGS macro to include fullscreen bit during window creation. Otherwise SDL2 will try to change window mode to fullscreen after its creation. So this hack prevents unnecessary closing and reopening the window. Any thoughts?
Re: SDL2
Posted on:
2016/2/5 20:57
#53
Quite a regular
Joined: 2013/10/17 16:21Last Login
: Today 16:54
From Hungary
Group:
Registered Users
If the switching to fullscreen happens after the window creation, then something like this is probably necessary.
BTW, I noticed that you re-added the memory pool semaphore from SDL1. This is a remnant from the OS3 port and no longer necessary, since MEMF_SHARED pools are protected against concurrent access:
http://wiki.amigaos.net/wiki/Exec_Memory_Pools#Concurrent_Access
This is just like television, only you can see much further.
Re: SDL2
Posted on:
2016/2/6 9:00
#54
Just can't stay away
Joined: 2007/7/14 21:30Last Login
: 11/3 18:55
From Lothric
Group:
Registered Users
@BSzili Nice! Less code, less bugs. If it turns out pool will only be used for input events, maybe the sizes can also be tuned, or item pool used as suggested on the same page.
Re: SDL2
Posted on:
2016/2/6 12:22
#55
Home away from home
Joined: 2006/11/20 16:26Last Login
: Yesterday 21:06
From Norway
Group:
Registered Users
@BSzili
Quote:
By specifying that the memory pool is protected we are guaranteed all operations performed on the memory pool are thread safe. The AmigaOS needs to know when it safe to another process.
Process 1 write to memory 123.
Process 2 write to memory 235
Process 1 reads from memory and gets 123?
Or is some how process 2 forces to wait for process 1 to read and write?
Or does it mean that memory pool lists are safe so that adding or freeing additional memory is thread safe.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: SDL2
Posted on:
2016/2/6 12:27
#56
Quite a regular
Joined: 2013/10/17 16:21Last Login
: Today 16:54
From Hungary
Group:
Registered Users
@LiveForItMEMF_SHARED pools are semaphore protected. edit: Actually it's the ASOPOOL_Protected tag.
Edited by BSzili on 2016/2/6 18:55:56
This is just like television, only you can see much further.
Re: SDL2
Posted on:
2016/2/6 14:54
#57
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@thread
Please support main developers that are porting SDL2 to Amiga
Capehill, afxgroup, BSzili
Retired
Re: SDL2
Posted on:
2016/2/6 14:57
#58
Quite a regular
Joined: 2006/11/22 17:57Last Login
: 6/4 16:05
From Italy, Rome
Group:
Registered Users
@thread
Please support main developers that are porting SDL2 to Amiga
Capehill, afxgroup, BSzili
upload immagini gratis
Retired
Re: SDL2
Posted on:
2016/2/6 17:44
#59
Just can't stay away
Joined: 2006/11/30 11:30Last Login
: 11/18 16:17
From Finland
Group:
Registered Users
@BSzili
Quote:
MEMF_SHARED pools are semaphore protected.It's the ASOPOOL_Protected tag that is used to specify if a pool should be protected though. The MEMF_SHARED constant is just for specifying the type of memory that is allocated.
Re: SDL2
Posted on:
2016/2/6 19:04
#60
Quite a regular
Joined: 2013/10/17 16:21Last Login
: Today 16:54
From Hungary
Group:
Registered Users
@salass00 Ooops, you are right. Somehow I mixed the two up.
This is just like television, only you can see much further.
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)