| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001-2008 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 **********************************************************************/ 00017 00018 00019 #ifndef __UNIFORMVALUE_H__ 00020 #define __UNIFORMVALUE_H__ 00021 00022 #include <vrs/sharedobj.h> 00023 #include <vrs/text/vrs_textprerequisites.h> 00024 00026 namespace VRS 00027 { 00028 namespace TEXT 00029 { 00033 class VRS_CORE_API UniformValue : public SharedObj 00034 { 00035 public: 00037 UniformValue( float absolute=0.0f, int relative=0 ); 00039 virtual ~UniformValue() {}; 00040 00041 void operator=(class UniformValue const &); 00042 00044 int getRelative() const; 00046 void setRelative( int relative ); 00048 float getAbsolute() const; 00050 void setAbsolute( float absolute ); 00051 00053 static const UniformValue ZERO; 00054 static const UniformValue UNIT; 00055 00056 VRS_TYPEINFO(UniformValue, SharedObj); 00057 VRS_SERIALIZABLE( UniformValue ); 00058 private: 00060 float m_Absolute; 00062 int m_Relative; 00063 }; 00064 } 00065 } 00066 00067 #endif