Game Development Community

Couple of Questions

by Dallin Wellington · in Torque Game Engine · 06/07/2007 (4:57 pm) · 5 replies

Hi im lordcorm, im new to these forums, and had a couple of questions about torque because im thinking about buying for a future game.

<1> Is it possible to program in C++ and use torque at the same time, like, is there a torque.h file of some sort?

<2> If i write a write a whole new project in C++ then add it to the Torque solution file, will it automatically add its self to the scripting language? Or do i have to include a certain header?

will edit and post more questions as they arise.

#1
06/09/2007 (8:08 pm)
1. You can code in both C++ and Torque Script to get the functionality you need.

2. It's hard to get specific about engine coding in a public forum, but I'll stay as general as I can. You can add a new project to any solution, but it still acts as an individual project. What are you thinking about trying to achieve? If you are talking about exposing your custom classes and functions to the scripting language, you would include it in the Torque project and proceed with the script exposure from there.
#2
06/10/2007 (12:36 pm)
Torque is not designed to be used as a library.

You could do so if you are extremely knowledgable about C++ and Torque but even then you would only have access to a fairly limited subset of its functionality.

1) No (if I understand what you asking with "torque.h")

2) No
#3
06/11/2007 (8:49 pm)
How whould i add my C++ code to the scripting system? I plan when i buy it to add an SQL Database function set that im currently making. Do i have to use pointers to functions or something in a header file?

Thanks for the help,
Dallin
#4
06/11/2007 (8:56 pm)
Torque has existing classes and functions that expose C++ objects and functionality. You would have to do so from within a Torque Project.

Can't get any more specific without violating the EULA.
#5
06/12/2007 (11:44 am)
Kk cool thanks for the help