TextureBackground.h

Go to the documentation of this file.
00001 
00002 //    Copyright 2004, SenseGraphics AB
00003 //
00004 //    This file is part of H3D API.
00005 //
00006 //    H3D API is free software; you can redistribute it and/or modify
00007 //    it under the terms of the GNU General Public License as published by
00008 //    the Free Software Foundation; either version 2 of the License, or
00009 //    (at your option) any later version.
00010 //
00011 //    H3D API is distributed in the hope that it will be useful,
00012 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //    GNU General Public License for more details.
00015 //
00016 //    You should have received a copy of the GNU General Public License
00017 //    along with H3D API; if not, write to the Free Software
00018 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 //
00020 //    A commercial license is also available. Please contact us at 
00021 //    www.sensegraphics.com for more information.
00022 //
00023 //
00027 //
00029 #ifndef __TEXTUREBACKGROUND_H__
00030 #define __TEXTUREBACKGROUND_H__
00031 
00032 #include "X3DBackgroundNode.h"
00033 #include "X3DTextureNode.h"
00034 #include "DependentNodeFields.h"
00035 #include "SFFloat.h"
00036 
00037 namespace H3D {
00038 
00079   class H3DAPI_API TextureBackground : 
00080     public X3DBackgroundNode {
00081   public:
00082     
00085     typedef DependentSFNode< X3DTextureNode, 
00086                              FieldRef< H3DDisplayListObject,
00087                                        H3DDisplayListObject::DisplayList,
00088                                        &H3DDisplayListObject::displayList >, 
00089                              true >
00090     SFTextureNode;
00091 
00093     TextureBackground( Inst< SFSetBind > _set_bind    = 0,
00094                        Inst< SFNode    > _metadata    = 0,
00095                        Inst< SFTime    > _bindTime    = 0,
00096                        Inst< SFBool    > _isBound     = 0,
00097                        Inst< DisplayList > _displayList = 0,
00098                        Inst< MFFloat   > _groundAngle = 0,
00099                        Inst< MFColor   > _groundColor = 0,
00100                        Inst< MFFloat   > _skyAngle    = 0,
00101                        Inst< MFColor   > _skyColor    = 0,
00102                        Inst< SFTextureNode  > _backTexture     = 0,
00103                        Inst< SFTextureNode  > _frontTexture    = 0,
00104                        Inst< SFTextureNode  > _leftTexture     = 0,
00105                        Inst< SFTextureNode  > _rightTexture    = 0,
00106                        Inst< SFTextureNode  > _topTexture      = 0,
00107                        Inst< SFTextureNode  > _bottomTexture   = 0,
00108                        Inst< SFFloat        > _transparency    = 0 );
00109 
00110     
00112     virtual void render();
00113 
00119     auto_ptr< SFTextureNode >  backTexture;
00120 
00126     auto_ptr< SFTextureNode >  frontTexture;
00127 
00133     auto_ptr< SFTextureNode >  leftTexture;
00134 
00140     auto_ptr< SFTextureNode >  rightTexture;
00141 
00147     auto_ptr< SFTextureNode >  topTexture;
00148 
00154     auto_ptr< SFTextureNode >  bottomTexture;
00155 
00161     auto_ptr< SFFloat >  transparency;
00162 
00164     static H3DNodeDatabase database;
00165   };
00166 }
00167 
00168 #endif

Generated on Thu Aug 24 12:38:34 2006 for H3D API by  doxygen 1.4.5