X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fpath.h;h=58dae2435d8fe4cb87036d2857035273e31bbf2a;hb=54392d65e2053d1eacb4cfcc435f1013993f2973;hp=56e7a2f1be60279ae941aa9d55405cc312be7596;hpb=90790c9a28793d31b9ea38eea2f55652a0e9297b;p=r2c2.git diff --git a/source/3d/path.h b/source/3d/path.h index 56e7a2f..58dae24 100644 --- a/source/3d/path.h +++ b/source/3d/path.h @@ -1,18 +1,11 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - -#ifndef MARKLIN3D_PATH_H_ -#define MARKLIN3D_PATH_H_ +#ifndef R2C2_3D_PATH_H_ +#define R2C2_3D_PATH_H_ #include #include #include -namespace Marklin { +namespace R2C2 { class Track3D; @@ -23,6 +16,7 @@ private: unsigned paths; bool automatic; Msp::GL::Color color; + float z_offs; public: Path3D(const Track3D &); @@ -32,10 +26,13 @@ public: void set_path(unsigned); void set_mask(unsigned); void set_color(const Msp::GL::Color &); + void set_layer(float); + + virtual long get_instance_key() const; - virtual void render(const Msp::GL::Tag &) const; + virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const; }; -} // namespace Marklin +} // namespace R2C2 #endif