It is currently Sat Aug 22, 2020 2:02 pm


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Turn PolyVox into a header-only library
PostPosted: Fri Apr 08, 2011 1:01 am 

Joined: Mon Apr 04, 2011 10:06 am
Posts: 5
It seems that most of PolyVox already exists in headers except some huge tables. It could be worth making thing work when functionality using these tables (maybe it already does?).

On a related note, CMake should build static libraries by default, at least for Visual Studio.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Turn PolyVox into a header-only library
PostPosted: Fri Apr 08, 2011 5:42 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I agree with you about the static libraries - the advantages of shared libraries (sharing code between applications, ease of updating, etc) don't really make sense in a library like PolyVox. Plus static libraries are just easier to work with because you don't have to remember to copy the right .dlls into your working folder, etc.

Not so sure about making it header only though. Those tables are key part of the library and I don't know of a better way to store that static data. Plus the library isn't finished yet, so there's every chance that header-only will make less sense in the future.

Once we have moved to Git I intend to focus on tidying up PolyVox rather than adding new features. That's the point at which I'll consider the above, and will ask if anybody has any objections to switching to static libraries at least by default.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Turn PolyVox into a header-only library
PostPosted: Sat May 07, 2011 1:48 pm 

Joined: Fri May 06, 2011 11:37 pm
Posts: 4
I'd appreciate this immensely; not having to build it separately but simply including PolyVox in my projects would cut down on time spent getting it working, giving me more time to implement whatever I'd like to use the library for (thus improving the drag -> drop aspect a lot).

I'll get it working over the next few days surely but pulling from git (or downloading a .zip and extracting it) and adding "#include PolyVox/PolyVox.h" would be a lot easier.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Turn PolyVox into a header-only library
PostPosted: Sat May 07, 2011 3:36 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
Geti wrote:
I'd appreciate this immensely; not having to build it separately but simply including PolyVox in my projects would cut down on time spent getting it working, giving me more time to implement whatever I'd like to use the library for (thus improving the drag -> drop aspect a lot).
It is for this reason that we're working on an SDK with with the library pre-built inside. Follow the progress in the thread.

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Turn PolyVox into a header-only library
PostPosted: Sat May 07, 2011 11:55 pm 

Joined: Fri May 06, 2011 11:37 pm
Posts: 4
Well, that's good to see. Cheers, milliams.


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

All times are UTC


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
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net