Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[eclipse] Using the 3dgs engine sdk #394711
02/16/12 00:13
02/16/12 00:13
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
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


Click and join the 3dgs irc community!
Room: #3dgs
Re: [eclipse] Using the 3dgs engine sdk [Re: Joozey] #394777
02/16/12 14:07
02/16/12 14:07
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Nice, I like Eclipse as well and tried to write a source code highlighting feature with xtext. Without success wink

Thanks for the effort!

Re: [eclipse] Using the 3dgs engine sdk [Re: PadMalcom] #394833
02/16/12 20:14
02/16/12 20:14
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline OP
Expert
Joozey  Offline OP
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
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.


Click and join the 3dgs irc community!
Room: #3dgs

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1