Torque3D Documentation / _generateds / gfxVertexTypes.h

gfxVertexTypes.h

Engine/source/gfx/gfxVertexTypes.h

More...

Public Functions

GFXDeclareVertexFormat(GFXVertexPad )
GFXDeclareVertexFormat(GFXVertexPC )
GFXDeclareVertexFormat(GFXVertexPCN )
GFXDeclareVertexFormat(GFXVertexPCNTT )
GFXDeclareVertexFormat(GFXVertexPCT )
GFXDeclareVertexFormat(GFXVertexPCTT )
GFXDeclareVertexFormat(GFXVertexPN )
GFXDeclareVertexFormat(GFXVertexPNT )
GFXDeclareVertexFormat(GFXVertexPNTBT )
GFXDeclareVertexFormat(GFXVertexPNTT )
GFXDeclareVertexFormat(GFXVertexPNTTB )
GFXDeclareVertexFormat(GFXVertexPT )
GFXDeclareVertexFormat(GFXVertexPTT )
GFXDeclareVertexFormat(GFXVertexPTTT )

Detailed Description

Public Functions

GFXDeclareVertexFormat(GFXVertexP )

GFXDeclareVertexFormat(GFXVertexPad )

GFXDeclareVertexFormat(GFXVertexPC )

GFXDeclareVertexFormat(GFXVertexPCN )

GFXDeclareVertexFormat(GFXVertexPCNTT )

GFXDeclareVertexFormat(GFXVertexPCT )

GFXDeclareVertexFormat(GFXVertexPCTT )

GFXDeclareVertexFormat(GFXVertexPN )

GFXDeclareVertexFormat(GFXVertexPNT )

GFXDeclareVertexFormat(GFXVertexPNTBT )

GFXDeclareVertexFormat(GFXVertexPNTT )

GFXDeclareVertexFormat(GFXVertexPNTTB )

GFXDeclareVertexFormat(GFXVertexPT )

GFXDeclareVertexFormat(GFXVertexPTT )

GFXDeclareVertexFormat(GFXVertexPTTT )

  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 _GFXVERTEXTYPES_H_
 25#define _GFXVERTEXTYPES_H_
 26
 27#ifndef _GFXVERTEXFORMAT_H_
 28#include "gfx/gfxVertexFormat.h"
 29#endif
 30#ifndef _GFXVERTEXCOLOR_H_
 31#include "gfx/gfxVertexColor.h"
 32#endif
 33#ifndef _MPOINT2_H_
 34#include "math/mPoint2.h"
 35#endif
 36#ifndef _MPOINT3_H_
 37#include "math/mPoint3.h"
 38#endif
 39
 40GFXDeclareVertexFormat( GFXVertexPad )
 41{
 42   U32 data;
 43};
 44
 45GFXDeclareVertexFormat( GFXVertexP )
 46{
 47   Point3F point;
 48};
 49
 50GFXDeclareVertexFormat( GFXVertexPT )
 51{
 52   Point3F point;
 53   Point2F texCoord;
 54};
 55
 56GFXDeclareVertexFormat( GFXVertexPTT )
 57{
 58   Point3F point;
 59   Point2F texCoord1;
 60   Point2F texCoord2;
 61};
 62
 63GFXDeclareVertexFormat( GFXVertexPTTT )
 64{
 65   Point3F point;
 66   Point2F texCoord1;
 67   Point2F texCoord2;
 68   Point2F texCoord3;
 69};
 70
 71GFXDeclareVertexFormat( GFXVertexPC )
 72{
 73   Point3F point;
 74   GFXVertexColor color;
 75};
 76
 77GFXDeclareVertexFormat( GFXVertexPCN )
 78{
 79   Point3F point;
 80   Point3F normal;
 81   GFXVertexColor color;
 82};
 83
 84GFXDeclareVertexFormat( GFXVertexPCT )
 85{
 86   Point3F point;
 87   GFXVertexColor color;
 88   Point2F texCoord;
 89};
 90
 91GFXDeclareVertexFormat( GFXVertexPCTT )
 92{
 93   Point3F point;
 94   GFXVertexColor color;
 95   Point2F texCoord;
 96   Point2F texCoord2;
 97};
 98
 99GFXDeclareVertexFormat( GFXVertexPN )
100{
101   Point3F point;
102   Point3F normal;
103};
104
105GFXDeclareVertexFormat( GFXVertexPNT )
106{
107   Point3F point;
108   Point3F normal;
109   Point2F texCoord;
110};
111
112GFXDeclareVertexFormat( GFXVertexPNTT )
113{
114   Point3F point;
115   Point3F normal;
116   Point3F tangent;
117   Point2F texCoord;
118};
119
120GFXDeclareVertexFormat( GFXVertexPCNTT )
121{
122   Point3F point;
123   GFXVertexColor color;
124   Point3F normal;
125   Point2F texCoord[2];
126};
127
128GFXDeclareVertexFormat( GFXVertexPNTBT )
129{
130   Point3F point;
131   Point3F normal;
132   Point3F tangent;
133   Point3F binormal;
134   Point2F texCoord;
135};
136
137/*
138
139DEFINE_VERT( GFXVertexPCNT, 
140            GFXVertexFlagXYZ | GFXVertexFlagNormal | GFXVertexFlagDiffuse | GFXVertexFlagTextureCount1 | GFXVertexFlagUV0)
141{
142   Point3F point;
143   Point3F normal;
144   GFXVertexColor color;
145   Point2F texCoord;
146};
147
148DEFINE_VERT( GFXVertexPCNTT, 
149            GFXVertexFlagXYZ | GFXVertexFlagNormal | GFXVertexFlagDiffuse | GFXVertexFlagTextureCount2 | GFXVertexFlagUV0 | GFXVertexFlagUV1)
150{
151   Point3F point;
152   Point3F normal;
153   GFXVertexColor color;
154   Point2F texCoord[2];
155};
156*/
157
158GFXDeclareVertexFormat( GFXVertexPNTTB )
159{
160   Point3F point;
161   Point3F normal;
162   Point3F T;
163   Point3F B;
164   Point2F texCoord;
165   Point2F texCoord2;
166};
167
168/*
169DEFINE_VERT( GFXVertexPNTB,
170            GFXVertexFlagXYZ | GFXVertexFlagNormal | GFXVertexFlagTextureCount2 | 
171            GFXVertexFlagUV0 | GFXVertexFlagUVW1 )
172{
173   Point3F point;
174   Point3F normal;
175   Point2F texCoord;
176   Point3F binormal;
177};
178*/
179
180#endif // _GFXVERTEXTYPES_H_
181