VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
ctdb
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
27
class
DT_DLL_ctdb
DtTE8Info_Little
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
38
class
DT_DLL_ctdb
DtTE8Info_Big
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
49
class
DT_DLL_ctdb
DtC7bTerrainElement8
50
{
51
public
:
52
53
DtC7bTerrainElement8
();
54
~
DtC7bTerrainElement8
();
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
67
DtC7NetU16
myY
;
68
DtC7NetU16
myX
;
69
DtC7NetFloat32
myZ
;
70
DtNetU8 myAdjacents[4];
71
DtNetU8 myIndex[4];
72
DtC7NetU32
myTEData
;
73
};
74
75
#endif
76
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)