FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DerelictGLFW and DerelictSQLite

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
Phrozen



Joined: 07 Aug 2007
Posts: 8

PostPosted: Wed Jun 08, 2011 3:54 pm    Post subject: DerelictGLFW and DerelictSQLite Reply with quote

I once derelictified GLFW and SQLite for use in past years (2009), I'm returning to my D programming, and I see Derelict2 is well on it's way. I would be happy to contribute by making and maintaining this 2 (that i will be using again) if they can make it into the Derelict package.

GLFW has been updated to 2.7 less than a year ago, and SQLite is under constant development. I know SQLite may not be so focused on game development and graphics, but it would be a HUGE success in making the D community focus their efforts in Derelict development.

If someone could point me to a guide or some guideline on how to derelictify for Derelict2 it would be awesome, and make it so to support D1, D2, Phobos and Tango.

This 2 libraries are small, and easy to port, but they are extremely powerful and widely used, so they would be a nice adition, I often use GLFW for graphics when SDL seems just too much, and well SQLite has better reputation than any library I could think of, opinions? Thnx for your comments.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Jun 09, 2011 6:18 am    Post subject: Re: DerelictGLFW and DerelictSQLite Reply with quote

Phrozen wrote:
I once derelictified GLFW and SQLite for use in past years (2009), I'm returning to my D programming, and I see Derelict2 is well on it's way. I would be happy to contribute by making and maintaining this 2 (that i will be using again) if they can make it into the Derelict package.


If you look through the Subversion history, we had a DerelictGLFW package once upon a time. I took it out because there were issues building the GLFW shared libraries on Linux. I did have plans to add it to Derelict2 eventually if that was no longer an issue. So if GLFW shared libraries can be built painlessly across Windows, Mac and Linux, or are at least available somewhere for download, then sure. Let's add it to svn.

Quote:

GLFW has been updated to 2.7 less than a year ago, and SQLite is under constant development. I know SQLite may not be so focused on game development and graphics, but it would be a HUGE success in making the D community focus their efforts in Derelict development.


There is currently movement toward getting a binding for it into Phobos. I'm quite certain it's going to happen, in which case I won't bother adding it to Derelict. The same reason there's no DerelictZLib. Of course, if there were ever a demand for Derelictified bindings, I'd consider it. But, that doesn't stop you from maintaining it independently. You can add a link to it on the Derelict project page.

Quote:

If someone could point me to a guide or some guideline on how to derelictify for Derelict2 it would be awesome, and make it so to support D1, D2, Phobos and Tango.


I haven't created a Derelict2 version of the Derelictification guide. For now, you'll just have to refer to the source of the existing packages. It's not complicated. In a nutshell:

You should have three modules: one for the types, one for the functions, and one for the loader. The types module is easy, just translate all type declarations to D. The functions module needs to import derelict.util.compat and declare the functions as part of a string mixin using the gsharedString template. The loader needs to extend SharedFileLoader and override the protected method loadSymbols. Then an instance of the loader needs to be created in a module ctor, and its unload method called in the module dtor. See the source for the details.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group