Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
_ConsoleBitfieldType Macro
Syntax
C++
#define _ConsoleBitfieldType( typeName, type, nativeType ) \ S32 type; \ ImplementConsoleTypeCasters( type, nativeType ) \ class BitfieldConsoleType ## type : public BitfieldConsoleBaseType \ { \ public: \ BitfieldConsoleType ## type() \ : BitfieldConsoleBaseType( sizeof( nativeType ), &type, #type ) \ { \ mTypeInfo = _MAPTYPE< nativeType >(); \ } \ virtual const char *getTypeClassName() { return #typeName; } \ virtual void *getNativeVariable() { return new nativeType; } \ virtual void deleteNativeVariable(void* var) { nativeType* nativeVar = reinterpret_cast< nativeType* >( var ); delete nativeVar; }\ }; \ BitfieldConsoleType ## type gConsoleType ## type ## Instance;

This is macro _ConsoleBitfieldType.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!