Jump to content
  • Advertisement
Sign in to follow this  
Randi

Torque Questions

This topic is 3471 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having some trouble learning Torque, I am originally a C++ programmer. 1. How do you declare a class with variables and such in Torque? 2. How do you use OpenGL to draw in Torque?

Share this post


Link to post
Share on other sites
Advertisement
First of all, it would help if you could clarify what Torque technology you are using (TGE, TGEA, TGB, ...?). Second, I am not very experienced with Torque, but to my knowledge it is not possible to declare new classes from TorqueScript. Rather, you should create new classes in C++ and expose them to TorqueScript using the macros provided. Read the code and you will see how it is done.

As for drawing with OpenGL, you will again need to clarify -- what exactly do you intend to draw, and, more importantly, why are you so sure that you will need to access GL directly? Torque itself can do pretty much anything you can imagine.

EDIT: The following links might help you: (LOGIN REQUIRED)
http://tdn.garagegames.com/wiki/TorqueScript
http://tdn.garagegames.com/wiki/Code/How_do_I_make_a_scriptable_object%3F

Share this post


Link to post
Share on other sites
I am using TGB and I need to draw gauges with pie piece sections that are not always the same and it needs a rotating needle.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!