Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AVertexTypes.h

Go to the documentation of this file.
00001 /*
00002 CS Senior Project 2003
00003 Team : Leftfield
00004 Project : ModernWarfare
00005 Members :
00006 - Russ Christensen              <rchriste@cs.utah.edu>
00007 - Todd Smith                    <tcsmith@cs.utah.edu>
00008 - Usit Duongsaa                 <duongsaa@cs.utah.edu>
00009 
00010 Copyright 2003 Russ Christensen, Usit Duongsaa, and Todd Smith. All rights reserved.
00011 
00012 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00013 
00014 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
00015 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
00016 THIS SOFTWARE IS PROVIDED BY RUSS CHRISTENSEN, USIT DUONGSAA, AND TODD SMITH ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RUSS, USIT, TODD OR OTHER CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00017 */
00018 
00023 #ifndef INCLUDE_AVERTEXTYPES
00024 #define INCLUDE_AVERTEXTYPES
00025 
00026 #include "ExternalLibs.h"
00027 
00028 
00029 //------------------------------------------------------------------------------------
00030 //------------------------------------------------------------------------------------
00033 struct OverlayVertex
00034 {
00035         FLOAT cIndex;   
00036 };
00037 //------------------------------------------------------------------------------------
00038 static DWORD dwOverlayVertexDecl[] =
00039 {
00040     D3DVSD_STREAM(0),
00041     D3DVSD_REG( 0, D3DVSDT_FLOAT1),
00042     D3DVSD_END()
00043 };
00044 //------------------------------------------------------------------------------------
00045 //------------------------------------------------------------------------------------
00047 struct MeshVertex
00048 {
00049         Vec3D   pos;
00050         Vec2D   uv;
00051         Vec3D   normal;
00053         FLOAT   cindex;
00054 };
00055 //------------------------------------------------------------------------------------
00056 static DWORD dwMeshVertexDecl[] =
00057 {
00058     D3DVSD_STREAM(0),
00059     D3DVSD_REG( 0, D3DVSDT_FLOAT3),
00060         D3DVSD_REG( 1, D3DVSDT_FLOAT2),
00061         D3DVSD_REG( 2, D3DVSDT_FLOAT3), 
00062         D3DVSD_REG(     3, D3DVSDT_FLOAT1),
00063     D3DVSD_END()
00064 };
00065 //------------------------------------------------------------------------------------
00067 struct ColoredTerrainVertex
00068 {
00069         Vec3D pos;
00070         Vec3D normal;
00071         FLOAT blendFactor;      
00072 };
00073 //------------------------------------------------------------------------------------
00074 static DWORD dwColoredTerrainVertexDecl[] =
00075 {
00076     D3DVSD_STREAM(0),
00077     D3DVSD_REG( 0, D3DVSDT_FLOAT3),
00078         D3DVSD_REG( 1, D3DVSDT_FLOAT3),
00079         D3DVSD_REG( 2, D3DVSDT_FLOAT1), 
00080     D3DVSD_END()
00081 };
00082 //------------------------------------------------------------------------------------
00083 //------------------------------------------------------------------------------------
00086 struct LerpParticleVertex
00087 {
00088         Vec3D   pos1, pos2;
00089         Vec4D   colorMultiplier;
00090         FLOAT   dist, size;
00091 };
00092 //------------------------------------------------------------------------------------
00093 static DWORD dwLerpParticleVertexDecl[] =
00094 {
00095     D3DVSD_STREAM(0),
00096     D3DVSD_REG( 0, D3DVSDT_FLOAT3),
00097         D3DVSD_REG( 1, D3DVSDT_FLOAT3),
00098         D3DVSD_REG( 2, D3DVSDT_FLOAT4),
00099         D3DVSD_REG( 3, D3DVSDT_FLOAT1),
00100         D3DVSD_REG( 4, D3DVSDT_FLOAT1),
00101     D3DVSD_END()
00102 };
00103 //------------------------------------------------------------------------------------
00104 //------------------------------------------------------------------------------------
00105 struct SpriteVertex
00106 {
00107         Vec3D pos;
00108         Vec4D colorMultiplier;
00109         FLOAT size;
00110 };
00111 //------------------------------------------------------------------------------------
00112 static DWORD dwSpriteVertexDecl[] =
00113 {
00114     D3DVSD_STREAM(0),
00115     D3DVSD_REG( 0, D3DVSDT_FLOAT3),     
00116         D3DVSD_REG( 1, D3DVSDT_FLOAT4), 
00117         D3DVSD_REG( 2, D3DVSDT_FLOAT1),
00118     D3DVSD_END()
00119 };
00120 //------------------------------------------------------------------------------------
00121 //------------------------------------------------------------------------------------
00122 
00123 #endif

Generated on Wed Apr 23 05:50:14 2003 for Modern Warfare by doxygen1.3-rc2