1 // 2 // SuperTuxKart - a fun racing game with go-kart 3 // Copyright (C) 2016 SuperTuxKart-Team 4 // 5 // This program is free software; you can redistribute it and/or 6 // modify it under the terms of the GNU General Public License 7 // as published by the Free Software Foundation; either version 3 8 // of the License, or (at your option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 #ifndef HEADER_RENDER_INFO_HPP 20 #define HEADER_RENDER_INFO_HPP 21 22 #include "utils/no_copy.hpp" 23 24 /** 25 * \ingroup graphics 26 */ 27 class RenderInfo : public NoCopy 28 { 29 private: 30 float m_hue; 31 32 bool m_transparent; 33 34 public: 35 // ------------------------------------------------------------------------ RenderInfo(float hue=0.0f,bool transparent=false)36 RenderInfo(float hue = 0.0f, bool transparent = false) 37 { 38 m_hue = hue; 39 m_transparent = transparent; 40 } 41 // ------------------------------------------------------------------------ setHue(float hue)42 void setHue(float hue) { m_hue = hue; } 43 // ------------------------------------------------------------------------ setTransparent(bool transparent)44 void setTransparent(bool transparent) { m_transparent = transparent; } 45 // ------------------------------------------------------------------------ getHue() const46 float getHue() const { return m_hue; } 47 // ------------------------------------------------------------------------ isTransparent() const48 bool isTransparent() const { return m_transparent; } 49 50 }; // RenderInfo 51 52 #endif 53 54 /* EOF */ 55