|
1 registered members (TipmyPip),
18,574
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Write C++ in A7
#188254
03/13/08 16:04
03/13/08 16:04
|
Joined: Feb 2008
Posts: 18 Canada
Sengey
OP
Newbie
|
OP
Newbie
Joined: Feb 2008
Posts: 18
Canada
|
I read that you can write C++ in A7 version of GS. How do you switch between Lite-C to C++.
Thanks for taking your time.
Last One Standing.
|
|
|
Re: Write C++ in A7
[Re: Sengey]
#188255
03/13/08 17:01
03/13/08 17:01
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
There are 2 methodes for this: 1) You could write an engine plugin in c++ by using the plugin sdk. 2) You could use the engine sdk and call the engine from a c++ program. So the whole game is written in c++ and you just have to call the engine from c++.
Lite-C is very C++ oriented. And if you don't want to use some special c++ features which aren't supported by Lite-C, you can also use Lite-C.
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Write C++ in A7
[Re: Joey]
#188257
03/13/08 21:28
03/13/08 21:28
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I should have said, that the syntax of lite-C is similar to normal C or C++. But of course it has limitations in comparison with normal C. There are no structs for example, but this feature is planned to be implented.
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Write C++ in A7
[Re: Christian__A]
#188259
03/13/08 23:10
03/13/08 23:10
|
Joined: Feb 2008
Posts: 18 Canada
Sengey
OP
Newbie
|
OP
Newbie
Joined: Feb 2008
Posts: 18
Canada
|
I know that Lite - C is different, it uses C as a Base not C++. What I am talking about that on 3dgamestudio specifications on the website, it says in A7 version you can script C++. If you read what it says on www.3dgamestudio.com they say that in A7 you can script with C++. I am not talking about old A6. It is just same as you can import 3D Max or Maya models into A7.
Last edited by Sengey; 03/13/08 23:11.
|
|
|
Re: Write C++ in A7
[Re: Sengey]
#188260
03/14/08 07:24
03/14/08 07:24
|
Joined: Apr 2006
Posts: 66 Sweden
rstralberg
Junior Member
|
Junior Member
Joined: Apr 2006
Posts: 66
Sweden
|
In the 3D GameStudio specification on the website it's never said that you may script C++. Quote:
Lite-C is a lightweight version of C/C++, the language used for commercial games programming. But unlike C++, it's extremely easy to learn and the best way to get introduced into 'real' programming. Anything that's scary to a beginner, like memory and pointer handling, is automatically managed in lite-C.
Quote:
If you prefer to program in 'real' C++, Delphi or other languages, you can implement Gamestudio's engine into your own programs using the engine SDK. You can even continue to use lite-C as a scripting language; lite-C functions and variables can be called from your program and vice versa.
This means that you may use the engine (as a dll) in your own C++ code or write your own C++ plugins so they can be used by the engine and lite-C. Not that you can script in C++.
Kindly ~Roland
Last edited by rstralberg; 03/14/08 09:52.
|
|
|
|
|
|