Jump to content
  • Advertisement
Sign in to follow this  
chadsxe

What benifits do using Static Libraries and DLL's have in engine building?

This topic is 4158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently knee deep in the book 3D Game Engine Programming and I am trying to figure out exactly what benifits using Static Libraries and DLL's can offer an engine. When messing around with my "toy" engines before reading this book it never even crossed my mind to attempt to implement them. Hmm....just looking for some insight. Regards Chad

Share this post


Link to post
Share on other sites
Advertisement
The reasons you would make libraries are the same for any piece of software; it provides a formal framework for creating re-usable code.

Let's say you finish your engine and make a couple of games with it. Experience with the engine shows up a deficiency and you decide to re-write large parts of it for your future games.

If your code is all tangled together (not "modular" in some sense), it's hard to extract existing code that you've already created for use in the new engine because it's all interdependent.

By separating out functionality in to isolated units, you are able to easily re-use as many or as few of your existing components in other projects as you like.

You might already have a pretty bitchin' model loader, for example. But if your texture loader sucks and is tightly coupled with the model loader, you're going to have a job separating out the texture stuff. It each was in it's own library to begin with, you wouldn't have that problem.

However, designing *really good* library interfaces is not easy.

Static libraries vs dynamic libraries is a different question, but I don't think you meant that?

Edd

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!