![]() |
Kochol Game Engine
0.1.0
|
This tutorial shows you how to setup visual studio for working with KGE then we will write a program that initialize the engine and adds a simple box to scene.
This section will explains how to setup your compiler for working with KGE Currently we use Microsoft Visual Studio and I will explain how to configure it , but you will also be able to understand everything about compiler setup if you are using another compiler.
For start we need some Requirements: Latest Version of KGE pre built. Download the latest SDK
Open Microsoft Visual Studio on your computer and create a new project of win32 Console Application. Name the project and select its location then click OK.
In the appeared Window select Application settings, in the additional options check the Empty project check box. Click on Finish button.
You have to include the header folder to search path, in order to use the engine. The header files can be found in the KGE SDK directory "Include" and "Libs".
Let's explain shortly how to specify this file in Microsoft Visual Studio: ( maybe different for every IDE and compiler you use )
After creating your project goto View menu then select property manager in the opening window select your project-> Debug | Win32 Right click on Microsoft.Cpp.Win32.user and select properties. On new opend window select VC++ directories. In Include directories add KGE SDK "Include" and "Libs" folders path. In Library directories add KGE SDK "bin/debug" and "libs" folders path.
Select Tools menu and select Options. Select the projects entry and then select . Select ‘show directories for include files’ in the combo box , and add “Include” Directories of KGE engine. Compiler also need to find the library files of engine,so stay in that dialog , select ‘show directories for Library files’ and add the libs directory of engine and also add the “Debug” directory.
Click Button.
if you use Microsoft Visual Studio 6.0,Select Menu and select , In the Option Window Select Tab and select the ‘Include’ Item in the combo box. Now Add the "Include" and "Libs" Directory path of the KGE engine folder to the list of directories. Now the compiler will find the “kge.h” header file. Compiler also need to find the library files of engine, So select the ‘Library’ item in the combo box and add the “Libs” directory of the engine and also add the “Debug” directory of engine to find “kge.lib”
That’s it. With your IDE set up like this, you will now be able to develop applications with the Kochol Game Engine.
Just write this program and compile it to make sure that you do all thing right.
This tutorial shows how to use Kochol Game Engine
We recommend if you want test KGE change the codes in this tutorial