Jump to content
  • Advertisement
Sign in to follow this  
MajinMusashi

Code organization and libraries

This topic is 4769 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

Hi! As my projects begun to grow more than what I've expected, separating them into static libraries (text rendering, image loading, sound mixing etc.) was such an obvious thing to do, and I think I've done well, since I got smaller compile times, better code legibility and so on.
// game.cpp
#pragma comment( lib, "OpenGL32.lib" )	 // Link against OpenGL library
#pragma comment( lib, "SDL.lib" )	 // Link against SDL library
#pragma comment( lib, "SDLmain.lib" )	 // Link against SDLmain library
#pragma comment( lib, "SDL_mixer.lib" )	 // Link against SDL Mixer library
#pragma comment( lib, "libfreetype.lib" )// Link against FreeType2 library
#pragma comment( lib, "TEXT.lib" )	 // Link against my Text library
#pragma comment( lib, "IMAGE.lib" )	 // Link against my Image library
#pragma comment( lib, "GUI.lib" )	 // Link against my GUI library
#pragma comment( lib, "LOGGER.lib" )	 // Link against my Logger library
#pragma comment( lib, "RESOURCES.lib" )	 // Link against my Resources library
#pragma comment( lib, "SOUND.lib" )	 // Link against my Sound library
But now I think that was not so obvious, as I'm in doubt of what is the optimal way to maintain huge game projects and their modules / libraries organized. Question: How do you organize your code? How most softhouses organize their code? Thanks very much!! [Edited by - MajinMusashi on August 27, 2005 7:24:53 PM]

Share this post


Link to post
Share on other sites
Advertisement
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!