00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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