mercator
0.4.0
A terrain generation library for the Worldforge system.
Plant.h
1
// This file may be redistributed and modified only under the terms of
2
// the GNU General Public License (See COPYING for details).
3
// Copyright (C) 2004 Alistair Riddoch
4
5
#ifndef MERCATOR_PLANT_H
6
#define MERCATOR_PLANT_H
7
8
#include <wfmath/point.h>
9
#include <wfmath/quaternion.h>
10
11
#include <string>
12
13
namespace
Mercator {
14
19
struct
Plant
{
21
WFMath::Point<2>
m_displacement
;
23
WFMath::Quaternion
m_orientation
;
25
float
m_height
;
26
27
};
28
29
}
30
31
#endif // MERCATOR_PLANT_H
Mercator::Plant
This is the simple class for representing instances of vegetation.
Definition:
Plant.h:19
Mercator::Plant::m_displacement
WFMath::Point< 2 > m_displacement
Position of the vegetation relative to its grid point.
Definition:
Plant.h:21
Mercator::Plant::m_orientation
WFMath::Quaternion m_orientation
Orientation of the vegetation.
Definition:
Plant.h:23
Mercator::Plant::m_height
float m_height
Height of the vegetation.
Definition:
Plant.h:25
src
Mercator
Plant.h
Generated by
1.8.18