![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: c7bTerrainElement16.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 // 00010 // File c7bTerrainElement16 00011 // 00012 00013 00014 #ifndef __DtC7bTerrainElement16 00015 #define __DtC7bTerrainElement16 00016 00017 #include "ctdb/ctdbDefines.h" 00018 #include <stdio.h> 00019 #include "ctdb/c7NetTypes.h" 00020 00021 // Class: DtC7bTerrainElement16 00022 // 00023 // The class is public because should not be used but anyone else than 00024 // DtC7b. 00025 // 00026 00027 class DT_DLL_ctdb DtC7bTerrainElement16 00028 { 00029 public: 00030 00031 DtC7bTerrainElement16(); 00032 ~DtC7bTerrainElement16(); 00033 00034 bool read(FILE *f); 00035 00036 bool isTriangle(); 00037 bool isQuadrilateral(); 00038 00039 int vertices(); 00040 int soil0(); 00041 int soil1(); 00042 00043 void swapEndian(); 00044 DtC7NetU16 myY; 00045 DtC7NetU16 myX; 00046 DtC7NetFloat32 myZ; 00047 DtC7NetU16 myAdjacents[4]; 00048 DtC7NetU16 myIndex[4]; 00049 DtC7NetU32 myTEData; 00050 }; 00051 00052 #endif 00053