It is currently Sat Jul 11, 2020 5:37 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Started to code a SDL2 wrapper :)
PostPosted: Sat Oct 21, 2017 9:48 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 687
I started to code a wrapper (sort of) for SDL2 8)
If someone wants to help me that would be great :D

How it looks so far:
Image

No issues yet (i already can rotate/flip/transform/blend sprites~) :)
However im a bit worried about some datatypes like -> UInt32...


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Sun Oct 22, 2017 1:44 am 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 925
Location: UA
Oh good luck with that. I was trying somehow to code SDL wrapper but dropped it on 50% due to large size of library itself.
But well that was secondary reason, just except it I've realized that I can do what I need with built-in PB stuff.

> However im a bit worried about some datatypes like -> UInt32...
You can code for those unsigned types few simple functions in C, and embed them directly into SDL lib/dll. There was even topic on forum where it's already done, just add and export it: viewtopic.php?f=12&t=66217
Also somewhere was ASM stuff to deal with those types directly in PB.

_________________
Kind of copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Mon Oct 23, 2017 7:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Apr 30, 2009 5:23 pm
Posts: 328
Location: Côtes d'Azur, France
I wish it will work.
Hopefully, we will get rid of Pb's bugged sprite library that way... :?:

_________________
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Oct 25, 2017 9:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 687
Lunasole wrote:
Oh good luck with that. I was trying somehow to code SDL wrapper but dropped it on 50% due to large size of library itself.
...

...
You can code for those unsigned types few simple functions in C, and embed them directly into SDL lib/dll. There was even topic on forum where it's already done, just add and export it: viewtopic.php?f=12&t=66217
Also somewhere was ASM stuff to deal with those types directly in PB.


Thx, those links are helpful im @15% so it could take a while... its a shame that we even have to work around datatypes...


Last edited by Mijikai on Wed Oct 25, 2017 10:16 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Oct 25, 2017 9:54 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 687
Fig wrote:
I wish it will work.
Hopefully, we will get rid of Pb's bugged sprite library that way... :?:


I hope so...
There are pretty much no games (im not talking about card or board games) out there made with/in PB.
And its pretty obvious why...

Im not going to start a full rant...
however PB supports SDL... so pls at least give us direct access...


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Thu Oct 26, 2017 7:54 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1483
Location: Germany
Maybe you can have a look on the SDL (v1.2.11) wrapper developed by Progi1984 found on http://www.purearea.net:


RWSDL
v0.1 (Wrapper)
17.07.2007
Progi1984
Wrapper für die v1.2.11 der 'SDL' (Simple DirectMedia Layer) DLL.


http://www.purearea.net/pb/download/dll ... 1.2.11.zip

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Nov 22, 2017 3:08 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1483
Location: Germany
any news?

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Jan 17, 2018 8:53 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Jan 25, 2005 7:01 pm
Posts: 460
Location: Canada
Still no news I guess?

Anyway, I tried Progi1984's wrapper and...
Image

WOW 2007!


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Mar 28, 2018 1:49 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1483
Location: Germany
Account "Mijikai" seems to be no longer exsisting.

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...


Top
 Profile  
Reply with quote  
 Post subject: Re: Started to code a SDL2 wrapper :)
PostPosted: Wed Mar 28, 2018 6:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 687
IceSoft wrote:
Account "Mijikai" seems to be no longer exsisting.


Im still here but this is no longer on my priority list.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye