Strip.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2009 Autodesk, Inc.  All rights reserved. 
00003 //
00004 // This computer source code and related instructions and comments are the
00005 // unpublished confidential and proprietary information of Autodesk, Inc. and
00006 // are protected under applicable copyright and trade secret law.  They may
00007 // not be disclosed to, copied or used by any third party without the prior
00008 // written consent of Autodesk, Inc.
00009 #pragma once
00010 #include "MaxHeap.h"
00011 #include "maxtypes.h"
00012 #include <WTypes.h>
00013 #include "TabTypes.h"
00014 
00016 class Strip : public MaxHeapOperators
00017 {
00018 public:
00019     MtlID   mID;
00020     DWORD   smGrp;
00021     DWTab   v;
00022     DWTab   n;
00023     DWTab   tv;
00024     void AddVert(DWORD vtx) { v.Append(1, &vtx); }
00025     void AddVert(DWORD vtx, DWORD tvtx) { v.Append(1, &vtx); tv.Append(1, &tvtx); }
00026     void AddVertN(DWORD vtx, DWORD nor) { v.Append(1, &vtx); n.Append(1, &nor); }
00027     void AddVertN(DWORD vtx, DWORD tvtx, DWORD nor) { v.Append(1, &vtx); tv.Append(1, &tvtx); n.Append(1, &nor); }
00028 };
00029 
00030 typedef Strip* StripPtr;
00031 typedef Tab<StripPtr> StripTab;