VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
c7bTerrainElement8.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: c7bTerrainElement8.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
9 //
10 // File c7bTerrainElement8
11 //
12 
13 
14 #ifndef __DtC7bTerrainElement8
15 #define __DtC7bTerrainElement8
16 
17 #include "ctdb/ctdbDefines.h"
18 #include <stdio.h>
19 #include "ctdb/c7NetTypes.h"
20 
21 // Class: DtC7bTerrainElement8
22 //
23 // The class is public because should not be used but anyone else than
24 // DtC7b.
25 //
26 
28 {
29 public:
30  char adj_sides; /* Two bits per edge */
31  unsigned char soil1;
32  unsigned char soil0;
33  unsigned char patch_adj:4;
34  unsigned char vertices:2;
35  unsigned char blank1:2; /* place holder */
36 };
37 
39 {
40 public:
41  unsigned char blank1:2; /* place holder */
42  unsigned char vertices:2;
43  unsigned char patch_adj:4;
44  unsigned char soil0;
45  unsigned char soil1;
46  char adj_sides; /* Two bits per edge */
47 };
48 
50 {
51 public:
52 
55 
56  bool read(FILE *f);
57 
58  bool isTriangle();
59  bool isQuadrilateral();
60 
61  int vertices();
62  int soil0();
63  int soil1();
64 
65  void swapEndian();
66 
70  DtNetU8 myAdjacents[4];
71  DtNetU8 myIndex[4];
73 };
74 
75 #endif
76 
char adj_sides
Definition: c7bTerrainElement8.h:30
unsigned char soil0
Definition: c7bTerrainElement8.h:32
Network-order 32-bit IEEE-754 floating-point quantity.
Definition: c7NetTypes.h:106
Network-order unsigned 16-bit quantity.
Definition: c7NetTypes.h:28
Definition: c7bTerrainElement8.h:38
unsigned char soil1
Definition: c7bTerrainElement8.h:31
#define DT_DLL_ctdb
Definition: ctdbDefines.h:23
unsigned char soil0
Definition: c7bTerrainElement8.h:44
DtC7NetFloat32 myZ
Definition: c7bTerrainElement8.h:69
DtC7NetU16 myY
Definition: c7bTerrainElement8.h:67
DtC7NetU32 myTEData
Definition: c7bTerrainElement8.h:72
Definition: c7bTerrainElement8.h:27
DtC7NetU16 myX
Definition: c7bTerrainElement8.h:68
char adj_sides
Definition: c7bTerrainElement8.h:46
unsigned char soil1
Definition: c7bTerrainElement8.h:45
Network-order unsigned 32-bit quantity.
Definition: c7NetTypes.h:66
Definition: c7bTerrainElement8.h:49

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)