version.h
Public Defines
TORQUE_ENGINE_PRODUCT() 0007
Since we can build different engine "products" out of the same base engine source we need a way to differentiate which product this particular game is using.
TORQUE_GAME_ENGINE() 3900
This is our global version number for the engine source code that we are using.
TORQUE_GAME_ENGINE_VERSION_STRING() "3.9.0"
Human readable engine version string.
Public Functions
Gets the application version number. The version number is specified as a global in torqueConfig.h.
const char *
Gets the human readable application version string.
const char *
Gets the compile date and time.
const char *
Gets the engine product name in string form.
Gets the engine version number. The version number is specified as a global in version.cc.
const char *
Gets the engine version number in a human readable form.
Detailed Description
Public Defines
TORQUE_ENGINE_PRODUCT() 0007
Since we can build different engine "products" out of the same base engine source we need a way to differentiate which product this particular game is using.
TGE 0001 TGEA 0002 TGB 0003 TGEA 360 0004 TGE WII 0005 Torque 3D 0006 Torque 3D MIT 0007
TORQUE_GAME_ENGINE() 3900
This is our global version number for the engine source code that we are using.
See
Version number is major * 1000 + minor * 100 + revision * 10.
TORQUE_GAME_ENGINE_VERSION_STRING() "3.9.0"
Human readable engine version string.
Public Functions
getAppVersionNumber()
Gets the application version number. The version number is specified as a global in torqueConfig.h.
getAppVersionString()
Gets the human readable application version string.
getCompileTimeString()
Gets the compile date and time.
getEngineProductString()
Gets the engine product name in string form.
Gets the engine product name in string form.
getVersionNumber()
Gets the engine version number. The version number is specified as a global in version.cc.
getVersionString()
Gets the engine version number in a human readable form.
1 2//----------------------------------------------------------------------------- 3// Copyright (c) 2012 GarageGames, LLC 4// 5// Permission is hereby granted, free of charge, to any person obtaining a copy 6// of this software and associated documentation files (the "Software"), to 7// deal in the Software without restriction, including without limitation the 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9// sell copies of the Software, and to permit persons to whom the Software is 10// furnished to do so, subject to the following conditions: 11// 12// The above copyright notice and this permission notice shall be included in 13// all copies or substantial portions of the Software. 14// 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21// IN THE SOFTWARE. 22//----------------------------------------------------------------------------- 23 24#ifndef _VERSION_H_ 25#define _VERSION_H_ 26 27/// Since we can build different engine "products" out of the same 28/// base engine source we need a way to differentiate which product 29/// this particular game is using. 30/// 31/// TGE 0001 32/// TGEA 0002 33/// TGB 0003 34/// TGEA 360 0004 35/// TGE WII 0005 36/// Torque 3D 0006 37/// Torque 3D MIT 0007 38#define TORQUE_ENGINE_PRODUCT 0007 39 40/// This is our global version number for the engine source code that 41/// we are using. See <game>/source/torqueConfig.h for the game's source 42/// code version, the game name, and which type of game it is (TGB, TGE, TGEA, etc.). 43/// 44/// Version number is major * 1000 + minor * 100 + revision * 10. 45#define TORQUE_GAME_ENGINE 3900 46 47/// Human readable engine version string. 48#define TORQUE_GAME_ENGINE_VERSION_STRING "3.9.0" 49 50/// Gets the engine version number. The version number is specified as a global in version.cc 51U32 getVersionNumber(); 52/// Gets the engine version number in a human readable form 53const char* getVersionString(); 54/// Gets the engine product name in string form 55const char* getEngineProductString(); 56/// Gets the compile date and time 57const char* getCompileTimeString(); 58 59/// Gets the application version number. The version number is specified as a global in torqueConfig.h 60U32 getAppVersionNumber(); 61/// Gets the human readable application version string. 62const char* getAppVersionString(); 63 64#endif 65