X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Ftgdb%2FTreeBin.hxx;h=3c7970281005d2e83d1f9bd756aa801b1f19005f;hb=d4c7e950927b1e19a7a7622a7919f32233a6b7a8;hp=da94313e9763adf634acd7a0e3f4a16764abf9fc;hpb=be616894586358a2804207bc984c5429dafdcc39;p=simgear.git diff --git a/simgear/scene/tgdb/TreeBin.hxx b/simgear/scene/tgdb/TreeBin.hxx index da94313e..3c797028 100644 --- a/simgear/scene/tgdb/TreeBin.hxx +++ b/simgear/scene/tgdb/TreeBin.hxx @@ -23,33 +23,39 @@ #define TREE_BIN_HXX #include +#include #include #include #include -#include +#include namespace simgear { class TreeBin { public: - struct Tree { - Tree(const SGVec3f& p, string t, float h, float w, double r) : - position(p), texture(t), height(h), width(w), range(r) - { } - SGVec3f position; - string texture; - float height; - float width; - double range; - }; + struct Tree { + Tree(const SGVec3f& p, int t, float s) : + position(p), texture_index(t), scale(s) + { } + SGVec3f position; + int texture_index; + float scale; + }; + typedef std::vector TreeList; + int texture_varieties; + double range; + float height; + float width; + std::string texture; + void insert(const Tree& t) { _trees.push_back(t); } - void insert(const SGVec3f& p, string t, float h, float w, double r) - { insert(Tree(p, t, h, w, r)); } + void insert(const SGVec3f& p, int t, float s) + { insert(Tree(p, t, s)); } unsigned getNumTrees() const { return _trees.size(); }