Torque3D Documentation / _generateds / enginePrimitives.cpp

enginePrimitives.cpp

Engine/source/console/enginePrimitives.cpp

More...

Public Functions

IMPLEMENT_PRIMITIVE(bool * , ptr_bool , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> bool." )
IMPLEMENT_PRIMITIVE(bool , bool , "Boolean true/false." )
IMPLEMENT_PRIMITIVE(const UTF8 ** , ptr_string , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an UTF-8 string." )
IMPLEMENT_PRIMITIVE(const UTF8 * , cstring , "Null-terminated UTF-8 Unicode string." )
IMPLEMENT_PRIMITIVE(F32 * , ptr_float , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> 32bit float." )
IMPLEMENT_PRIMITIVE(F32 , float , "32bit single-precision floating-point." )
IMPLEMENT_PRIMITIVE(F64 , double , "64bit double-precision floating-point." )
IMPLEMENT_PRIMITIVE(PlaneF * , ptr_PlaneF , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> <a href="/coding/class/classplanef/">PlaneF</a> struct." )
IMPLEMENT_PRIMITIVE(Point3F * , ptr_Point3F , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> <a href="/coding/class/classpoint3f/">Point3F</a> struct." )
IMPLEMENT_PRIMITIVE(PolyhedronData::Edge * , ptr_Edge , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an <a href="/coding/class/structedge/">Edge</a> struct." )
IMPLEMENT_PRIMITIVE(S16 , short , "16bit signed integer." )
IMPLEMENT_PRIMITIVE(S32 * , ptr_int , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> 32bit int." )
IMPLEMENT_PRIMITIVE(S32 , int , "32bit signed integer." )
IMPLEMENT_PRIMITIVE(S8 , byte , "8bit signed integer." )
IMPLEMENT_PRIMITIVE(String , string , "Null-terminated UTF-16 Unicode string." )
IMPLEMENT_PRIMITIVE(U16 , ushort , "16bit unsigned integer." )
IMPLEMENT_PRIMITIVE(U32 * , ptr_uint , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an unsigned 32bit int." )
IMPLEMENT_PRIMITIVE(U32 , uint , "32bit unsigned integer." )
IMPLEMENT_PRIMITIVE(U8 * , ptr_ubyte , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an unsigned byte." )
IMPLEMENT_PRIMITIVE(U8 , ubyte , "8bit unsigned integer." )
IMPLEMENT_PRIMITIVE(void * , ptr , "Opaque pointer." )

Detailed Description

Public Functions

IMPLEMENT_PRIMITIVE(bool * , ptr_bool , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> bool." )

IMPLEMENT_PRIMITIVE(bool , bool , "Boolean true/false." )

IMPLEMENT_PRIMITIVE(const UTF8 ** , ptr_string , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an UTF-8 string." )

IMPLEMENT_PRIMITIVE(const UTF8 * , cstring , "Null-terminated UTF-8 Unicode string." )

IMPLEMENT_PRIMITIVE(F32 * , ptr_float , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> 32bit float." )

IMPLEMENT_PRIMITIVE(F32 , float , "32bit single-precision floating-point." )

IMPLEMENT_PRIMITIVE(F64 , double , "64bit double-precision floating-point." )

IMPLEMENT_PRIMITIVE(PlaneF * , ptr_PlaneF , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> <a href="/coding/class/classplanef/">PlaneF</a> struct." )

IMPLEMENT_PRIMITIVE(Point3F * , ptr_Point3F , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> <a href="/coding/class/classpoint3f/">Point3F</a> struct." )

IMPLEMENT_PRIMITIVE(PolyhedronData::Edge * , ptr_Edge , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an <a href="/coding/class/structedge/">Edge</a> struct." )

IMPLEMENT_PRIMITIVE(S16 , short , "16bit signed integer." )

IMPLEMENT_PRIMITIVE(S32 * , ptr_int , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> 32bit int." )

IMPLEMENT_PRIMITIVE(S32 , int , "32bit signed integer." )

IMPLEMENT_PRIMITIVE(S8 , byte , "8bit signed integer." )

IMPLEMENT_PRIMITIVE(String , string , "Null-terminated UTF-16 Unicode string." )

IMPLEMENT_PRIMITIVE(U16 , ushort , "16bit unsigned integer." )

IMPLEMENT_PRIMITIVE(U32 * , ptr_uint , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an unsigned 32bit int." )

IMPLEMENT_PRIMITIVE(U32 , uint , "32bit unsigned integer." )

IMPLEMENT_PRIMITIVE(U8 * , ptr_ubyte , "Pointer <a href="/coding/file/cmdgram_8cpp/#cmdgram_8cpp_1a5bafda9519252aa2d0fd038153f77dca">to</a> an unsigned byte." )

IMPLEMENT_PRIMITIVE(U8 , ubyte , "8bit unsigned integer." )

IMPLEMENT_PRIMITIVE(void * , ptr , "Opaque pointer." )

 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#include "console/enginePrimitives.h"
25#include "console/engineTypeInfo.h"
26
27
28IMPLEMENT_PRIMITIVE( bool,          bool,,      "Boolean true/false." );
29IMPLEMENT_PRIMITIVE( S8,            byte,,      "8bit signed integer." );
30IMPLEMENT_PRIMITIVE( U8,            ubyte,,     "8bit unsigned integer." );
31IMPLEMENT_PRIMITIVE( S16,           short,,     "16bit signed integer.");
32IMPLEMENT_PRIMITIVE( U16,           ushort,,    "16bit unsigned integer.");
33IMPLEMENT_PRIMITIVE( S32,           int,,       "32bit signed integer." );
34IMPLEMENT_PRIMITIVE( U32,           uint,,      "32bit unsigned integer." );
35IMPLEMENT_PRIMITIVE( F32,           float,,     "32bit single-precision floating-point." );
36IMPLEMENT_PRIMITIVE( F64,           double,,    "64bit double-precision floating-point." );
37IMPLEMENT_PRIMITIVE( String,        string,,    "Null-terminated UTF-16 Unicode string." );
38IMPLEMENT_PRIMITIVE( const UTF8*,   cstring,,   "Null-terminated UTF-8 Unicode string.");
39IMPLEMENT_PRIMITIVE( void*,         ptr,,       "Opaque pointer." );
40
41// Define pointer types for vectors.
42IMPLEMENT_PRIMITIVE( bool*,                 ptr_bool,,    "Pointer to a bool." );
43IMPLEMENT_PRIMITIVE( U8*,                   ptr_ubyte,,   "Pointer to an unsigned byte." );
44IMPLEMENT_PRIMITIVE( U32*,                  ptr_uint,,    "Pointer to an unsigned 32bit int." );
45IMPLEMENT_PRIMITIVE( S32*,                  ptr_int,,     "Pointer to a 32bit int." );
46IMPLEMENT_PRIMITIVE( F32*,                  ptr_float,,   "Pointer to a 32bit float." );
47IMPLEMENT_PRIMITIVE( Point3F*,              ptr_Point3F,, "Pointer to a Point3F struct." );
48IMPLEMENT_PRIMITIVE( PlaneF*,               ptr_PlaneF,,  "Pointer to a PlaneF struct." );
49IMPLEMENT_PRIMITIVE( PolyhedronData::Edge*, ptr_Edge,,    "Pointer to an Edge struct." );
50IMPLEMENT_PRIMITIVE( const UTF8**,          ptr_string,,  "Pointer to an UTF-8 string." );
51