Hi, I have a relatively simple question: can you use a C game engine with a C++ IDE and the C++ Language? (I use Microsoft Visual C++ Express)? Specifically, I am interested in id Tech 2. Thanks!
intclass; // these work in C, but fail in C++ for obvious reasons
inttemplate;
inttypename;
//====
void AFunction();
int main()
{
AFunction(1,2,3); // this works in C
return 0;
};
By "use" i mean write/edit games with it, or use/make a code template with it. (Like, by template, I mane you can select and "id Software 2" Project from the "new project" section to start with it imported w/ some code, like with Win32 or OGRE)
You don't actually write any C or C++ to do that. You use the specialized language the engine provides to write scripts that will be interpreted at run time by the engine. The only case where you'd need to write C/++ is to write plugins, assuming the engine has that feature.
This is different from a rendering engine like OGRE because you interface with OGRE by linking with its library and calling functions. id Tech engines behave more like language interpreters.
I suppose you could use VC++ to write the scripts, but it won't give you any advantage over a simpler editor like, say, Notepad++. You won't get any code completion or anything like that, and there's nothing to compile.