Torque3D Documentation / _generateds / engineStructs.cpp

engineStructs.cpp

Engine/source/console/engineStructs.cpp

More...

Public Functions

IMPLEMENT_STRUCT(Torque::UUID, UUID,, "") Torque
IMPLEMENT_STRUCT(ColorI , ColorI , "RGBA color quadruple in 8bit integer precision per channel." )
IMPLEMENT_STRUCT(LinearColorF , LinearColorF , "RGBA color quadruple in 32bit floating-point precision per channel." )

Detailed Description

Public Functions

IMPLEMENT_STRUCT(ColorI , ColorI , "RGBA color quadruple in 8bit integer precision per channel." )

IMPLEMENT_STRUCT(LinearColorF , LinearColorF , "RGBA color quadruple in 32bit floating-point precision per channel." )

IMPLEMENT_STRUCT(PlaneF , PlaneF , "" )

IMPLEMENT_STRUCT(PolyhedronData::Edge , Edge , "" )

  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/engineStructs.h"
 25#include "console/engineAPI.h"
 26#include "core/util/tVector.h"
 27#include "core/util/uuid.h"
 28#include "core/color.h"
 29#include "math/mPolyhedron.h"
 30
 31IMPLEMENT_STRUCT(PlaneF,
 32   PlaneF, ,
 33   "")
 34
 35   FIELD(x, x, 1, "")
 36   FIELD(y, y, 1, "")
 37   FIELD(z, z, 1, "")
 38   FIELD(d, d, 1, "")
 39
 40END_IMPLEMENT_STRUCT;
 41
 42IMPLEMENT_STRUCT( PolyhedronData::Edge,
 43   Edge,,
 44   "" )
 45
 46   FIELD_AS(U32, face, face, 2, "")
 47   FIELD_AS(U32, vertex, vertex, 2, "")
 48
 49END_IMPLEMENT_STRUCT;
 50
 51
 52IMPLEMENT_STRUCT(Torque::UUID,
 53   UUID, ,
 54   "")
 55
 56   Torque::UUIDEngineExport::getAField(),
 57   Torque::UUIDEngineExport::getBField(),
 58   Torque::UUIDEngineExport::getCField(),
 59   Torque::UUIDEngineExport::getDField(),
 60   Torque::UUIDEngineExport::getEField(),
 61   Torque::UUIDEngineExport::getFField(),
 62
 63END_IMPLEMENT_STRUCT;
 64
 65IMPLEMENT_STRUCT( ColorI,
 66   ColorI,,
 67   "RGBA <a href="/coding/namespace/namespaceprimbuild/#namespaceprimbuild_1a7d647f9ec019b1630f0d2cbcc39182dc">color</a> quadruple in 8bit integer precision per channel." )
 68   
 69   FIELD( red, red, 1, "<a href="/coding/file/platformmemory_8cpp/#platformmemory_8cpp_1a51286ebbec911a4852768f96a045abd7ad3163c1fcda01965b692ec2c3122b743">Red</a> channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 70   FIELD( green, green, 1, "Green channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 71   FIELD( blue, blue, 1, "Blue channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 72   FIELD( alpha, alpha, 1, "Alpha channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 73   
 74END_IMPLEMENT_STRUCT;
 75
 76
 77IMPLEMENT_STRUCT( LinearColorF,
 78   LinearColorF,,
 79   "RGBA <a href="/coding/namespace/namespaceprimbuild/#namespaceprimbuild_1a7d647f9ec019b1630f0d2cbcc39182dc">color</a> quadruple in 32bit floating-point precision per channel." )
 80
 81   FIELD( red, red, 1, "<a href="/coding/file/platformmemory_8cpp/#platformmemory_8cpp_1a51286ebbec911a4852768f96a045abd7ad3163c1fcda01965b692ec2c3122b743">Red</a> channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 82   FIELD( green, green, 1, "Green channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 83   FIELD( blue, blue, 1, "Blue channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 84   FIELD( alpha, alpha, 1, "Alpha channel <a href="/coding/file/pointer_8h/#pointer_8h_1a32aff7c6c4cd253fdf6563677afab5ce">value</a>." )
 85
 86END_IMPLEMENT_STRUCT;
 87
 88// Vectors
 89IMPLEMENT_STRUCT( Vector< bool >,
 90   BoolVector,,
 91   "" )
 92
 93   VectorFieldEngineExport::getElementCountField< bool >(),
 94   VectorFieldEngineExport::getArraySizeField< bool >(),
 95   VectorFieldEngineExport::getArrayField< bool >(),
 96
 97END_IMPLEMENT_STRUCT;
 98
 99IMPLEMENT_STRUCT( Vector< S32 >,
100   IntVector,,
101   "" )
102
103   VectorFieldEngineExport::getElementCountField< S32 >(),
104   VectorFieldEngineExport::getArraySizeField< S32 >(),
105   VectorFieldEngineExport::getArrayField< S32 >(),
106
107END_IMPLEMENT_STRUCT;
108
109IMPLEMENT_STRUCT( Vector< F32 >,
110   FloatVector,,
111   "" )
112
113   VectorFieldEngineExport::getElementCountField< F32 >(),
114   VectorFieldEngineExport::getArraySizeField< F32 >(),
115   VectorFieldEngineExport::getArrayField< F32 >(),
116
117END_IMPLEMENT_STRUCT;
118
119IMPLEMENT_STRUCT( Vector< Point3F >,
120   Point3FVector,,
121   "" )
122
123   VectorFieldEngineExport::getElementCountField< Point3F >(),
124   VectorFieldEngineExport::getArraySizeField< Point3F >(),
125   VectorFieldEngineExport::getArrayField< Point3F >(),
126
127END_IMPLEMENT_STRUCT;
128
129IMPLEMENT_STRUCT(Vector< PlaneF >,
130   PlaneFVector, ,
131   "")
132
133   VectorFieldEngineExport::getElementCountField< PlaneF >(),
134   VectorFieldEngineExport::getArraySizeField< PlaneF >(),
135   VectorFieldEngineExport::getArrayField< PlaneF >(),
136
137END_IMPLEMENT_STRUCT;
138
139IMPLEMENT_STRUCT(Vector< PolyhedronData::Edge >,
140   EdgeVector, ,
141   "")
142
143   VectorFieldEngineExport::getElementCountField< PolyhedronData::Edge >(),
144   VectorFieldEngineExport::getArraySizeField< PolyhedronData::Edge >(),
145   VectorFieldEngineExport::getArrayField< PolyhedronData::Edge >(),
146
147END_IMPLEMENT_STRUCT;
148
149IMPLEMENT_STRUCT(Vector< const char* >,
150   StringVector, ,
151   "")
152
153   VectorFieldEngineExport::getElementCountField< const char* >(),
154   VectorFieldEngineExport::getArraySizeField< const char* >(),
155   VectorFieldEngineExport::getArrayField< const char* >(),
156
157END_IMPLEMENT_STRUCT;
158