Setting up Visual Studio - Linderdaum Engine
Gallery
Community
SEARCH
TOOLBOX
LANGUAGES

Setting up Visual Studio

From Linderdaum Engine

Jump to: navigation, search

To start development using precompiled Linderdaum Engine libraries you have to make proper project configuration for Visual Studio 2008 or 2010. VS Express Edition users have to download VCOMPD.lib and VCOMPD.dll to use OpenMP. Here are the basic steps you have to perform in VS 2008 to create a new project:




1. Goto File->New->Project menu and select Win32 Console Application

s1-CreateProject.jpg


2. Goto Project->Properties and in C++/General tab specify path to additional include directories:

s2-IncludeDirs.jpg


3. Goto Project->Properties and in Linker/General tab specify path to libraries directories:

s3-AdditionalLibraryDirs.jpg


4. Goto Project->Properties and in Linker/Input tab specify list of libraries:

LinderdaumEngineCore.lib OpenGL32.Lib user32.lib gdi32.lib Vfw32.lib ole32.lib glew32.lib ogg.lib vorbisfile.lib nvAPI.lib NVPerfSDK.lib FreeImage.lib fmodex_vc.lib wsock32.lib

s4-AdditinalDepends.jpg


5. Goto General and select Use of MFC: Use Standard Windows Libraries

s5-UseMFC.jpg


6. Include this code into your project:

   #include "Linderdaum.h"
 
   #include <tchar.h>
 
   sEnvironment* Env;
 
   APPLICATION_ENTRY_POINT
   {
      Env = new sEnvironment;
 
      Env->DeployDefaultEnvironment( NULL, "..\\..\\CommonMedia" );   
      Env->RunApplication( DEFAULT_CONSOLE_AUTOEXEC );
      Env->ShutdownEnvironment();
 
      delete( Env );
 
      return 0;
   }
 
   APPLICATION_SHUTDOWN
   {
   }

and press Rebuild Solution. You should have the project linked successfully.


Now you can start developing using Linderdaum Engine.