[eclipse] Using the 3dgs engine sdk

Posted By: Joozey

[eclipse] Using the 3dgs engine sdk - 02/16/12 00:13

Since I like Eclipse quite much, I decided to hook 3dgs with the engine sdk on it. For anyone else interested, my setup on Windows:

I use Eclipse Helios CDT for C/C++ apps.
Using the workspace "projects" in my gstudio7 folder, create a new project called MyGame with the following settings:

project->properties
  • C/C++ Build -> Builder Settings -> internal builder
  • C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler Includes:
    C:/MinGW/lib/gcc/mingw32/4.5.2/include
    C:/MinGW/lib/gcc/mingw32/4.5.2/include/c++
    C:/MinGW/include
    C:/GStudio7/sdk_engine (I actually use this folder locally in my project)
    C:/GStudio7/projects/MyGame
  • C/C++ Build -> Settings -> Tool Settings -> MinGW C++ Linker:
    Libraries (-l) = acknex
    Library search path (-L) = C:\GStudio7\sdk_engine
  • C/C++ Build -> Settings -> Build Steps -> Post-build steps Command: c:\gstudio7\WED.exe -p C:\GStudio7\projects\MyGame\Debug\MyGame.exe (for building your acknex.dll)
  • C/C++ Build -> Tool Chain Editor -> Current Toolchain = MinGW GCC (you have to install MinGW GCC)
  • C/C++ Build -> Tool Chain Editor -> Current builder = CDT Internal Builder


Note: replace Gstudio7 where needed laugh.

Create a new source file (MyGame.cpp) and copypaste the example code from gstudio\sdk_engine\e_tutorial.cpp, see if it works. Press the hammer to build, and the green arrow to run.

Regards,
Joozey
Posted By: PadMalcom

Re: [eclipse] Using the 3dgs engine sdk - 02/16/12 14:07

Nice, I like Eclipse as well and tried to write a source code highlighting feature with xtext. Without success wink

Thanks for the effort!
Posted By: Joozey

Re: [eclipse] Using the 3dgs engine sdk - 02/16/12 20:14

Hey PadMalcom,

You mean highlighting keywords like COLOR and VECTOR?
Properties of ENGINE_VARS objects are highlighted for me, like camera, time_step, key_cuu, etc, whatever eclipse finds in adll.h.

P.s. you can not use avars.h, since that is made for VC++. Mainly the assembly code differs from that of MinGW (I think). So you'll just have to live with _VAR() to cast your numbers to var.
© 2024 lite-C Forums