| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2002-2007 Computer Graphics Systems Group at the 00004 * Hasso-Plattner-Institute (HPI), University Potsdam, Germany. 00005 * 00006 * Author: stefan.maass@hpi.uni-potsdam.de 00007 * 00008 * This library is free software; you can redistribute it and/or modify it 00009 * under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation; either version 2.1 of the License, or (at 00011 * your option) any later version. This library is distributed in the hope 00012 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 00013 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. You should have received 00015 * a copy of the GNU Lesser+ General Public License along with this library; if 00016 * not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, 00017 * Boston, MA, 02111-1307, USA. 00018 ******************************************************************************/ 00019 #ifndef VRS_OPENGL_CALCTANGENTSANDBINORMALS_H 00020 #define VRS_OPENGL_CALCTANGENTSANDBINORMALS_H 00021 00022 #include <vrs/sharedobj.h> 00023 #include <vrs/opengl/normalmapgl.h> 00024 #include <vrs/polygonset.h> 00025 #include <vrs/sg/scenething.h> 00026 #include <vrs/scenenodevisitor.h> 00027 00028 00029 namespace VRS { 00030 00031 class VRS_CORE_API CalcTangentsAndBinormals 00032 : public VRS::SceneNodeVisitor 00033 { 00034 public: 00035 CalcTangentsAndBinormals (); 00036 00037 private: 00038 virtual SceneNodeVisitor::TraversalFlag visitScene(SharedObj* obj, bool pushHint); 00039 00040 bool m_activeNormalMapAttribute; 00041 }; 00042 00043 } // namespace VRS 00044 00045 #endif // VRS_OPENGL_CALCTANGENTSANDBINORMALS_H