]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/overlay.h
Strip Id tags and copyright notices from files
[r2c2.git] / source / 3d / overlay.h
index 8e818bf01e31b59a8fcf2cac1c01f7ecc54354de..d39b30ebde5b1cbd1b7675410e12ca07d7098e63 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef R2C2_3D_OVERLAY_H_
 #define R2C2_3D_OVERLAY_H_
 
@@ -27,18 +20,17 @@ private:
                std::string label;
                float width;
                Msp::GL::Mesh background;
+               Msp::GL::Mesh text;
 
                Icon();
        };
 
-       const Msp::Graphics::Window &window;
-       const Msp::GL::Camera &camera;
        const Msp::GL::Font &font;
        std::map<std::string, Msp::GL::Mesh *> graphics;
        std::map<const Object3D *, Icon *> icons;
 
 public:
-       Overlay3D(const Msp::Graphics::Window &, const Msp::GL::Camera &, const Msp::GL::Font &);
+       Overlay3D(const Msp::GL::Font &);
        ~Overlay3D();
 
        void set_label(const Object3D &, const std::string &);
@@ -47,7 +39,7 @@ public:
        void clear_graphics(const Object3D &);
        void clear(const Object3D &);
 
-       virtual void render(const Msp::GL::Tag &) const;
+       virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
 
 private:
        Icon &get_icon(const Object3D &);