Adding a new class
by Robert Fritzen · in Torque Game Engine Advanced · 04/22/2011 (2:12 pm) · 1 replies
Well, I'm wondering, how do you properly create a new Class object in the engine that can be used in other C++ files, initialized through the StandardMainLoop?
where MyClass is the new class... what do I need to have in my class' .cpp/.h files to make them work in multiple other files.
void StandardMainLoop::init()
{
Platform::setMathControlStateKnown();
.
.
.
MyClass::create();
}where MyClass is the new class... what do I need to have in my class' .cpp/.h files to make them work in multiple other files.
About the author
Illinois Grad. Retired T3D Developer / Pack Dev.
Torque Owner Alain Labrie
Ware-Wolf Games