30 #ifndef __GENERATEDCUBEMAPTEXTURE_H__
31 #define __GENERATEDCUBEMAPTEXTURE_H__
88 Inst< SFNode > _metadata = 0,
89 Inst< SFString > _update = 0,
90 Inst< SFInt32 > _size = 0,
91 Inst< SFTextureProperties > _textureProperties = 0 );
97 virtual void enableTexturing();
100 virtual void disableTexturing();
103 virtual void renderTextureProperties();
106 virtual void render();
114 if( generating_textures ) {
115 glEnable( GL_ALPHA_TEST );
116 glAlphaFunc( GL_NEVER, 0 );
128 virtual void initializeTextures();
216 virtual void updateCubeMap( GLuint texture_target,
217 const Vec3f & camera_position,
218 const Vec3f & camera_dir,
219 const Vec3f & camera_up,
Contains the DependentSFNode and DependentMFNode template classes.
Header file for H3DMultiPassRenderObject.
Contains the SFInt32 field class.
Header file for X3DEnvironmentTextureNode, X3D abstract scene-graph node.
Header file for X3DTexture2DNode, X3D scene-graph node.
Header file for X3DViewpointNode, X3D scene-graph node.
DependentSFNode are modified TypedSFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:294
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
The Field class.
Definition: Field.h:46
The GeneratedCubeMapTexture node defines a cubic environment map that sources its data from internall...
Definition: GeneratedCubeMapTexture.h:77
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: GeneratedCubeMapTexture.h:188
GLuint rbo_id
The id of the render buffer object we use for depth info.
Definition: GeneratedCubeMapTexture.h:197
virtual void preRender()
preRender disables rendering if it is called when rendering the cube maps for this node.
Definition: GeneratedCubeMapTexture.h:112
H3DUniquePtr< SFInt32 > size
The texture to use on the front face of the cube.
Definition: GeneratedCubeMapTexture.h:177
bool generating_textures
True if this not is currrently rendering the scene in order to create a cube map.
Definition: GeneratedCubeMapTexture.h:204
virtual GLbitfield getAffectedGLAttribs()
Returns a bitmask of the OpenGL attrib bits that will be affected by this node.
Definition: GeneratedCubeMapTexture.h:120
Matrix4f local_to_global
Transformation matrix from the local coordinate system of the node to the global coordinate system.
Definition: GeneratedCubeMapTexture.h:225
DependentSFNode< FieldRef< TextureProperties, Field, &TextureProperties::propertyChanged > > SFTextureProperties
The SFTextureProperties is dependent on the propertyChanged field of the contained TextureProperties.
Definition: GeneratedCubeMapTexture.h:84
H3DUniquePtr< SFString > update
The update field allows the user to request a regeneration of the texture.
Definition: GeneratedCubeMapTexture.h:169
GLuint fbo_id
The id of the frame buffer object we use to render into textures.
Definition: GeneratedCubeMapTexture.h:193
H3DUniquePtr< SFTextureProperties > textureProperties
The textureProperties field contains a TextureProperties node which allows fine control over a textur...
Definition: GeneratedCubeMapTexture.h:185
bool textures_initialized
True when the cube map textures has been initialized.
Definition: GeneratedCubeMapTexture.h:200
This abstract interface is inherited by all nodes that needs to render the scene an extra time(or mor...
Definition: H3DMultiPassRenderObject.h:41
TextureProperties allows fine control over a texture's application.
Definition: TextureProperties.h:195
H3DUniquePtr< Field > propertyChanged
Field that gets an event when any of the X3D fields in the TextureProperties generates an event.
Definition: TextureProperties.h:369
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
This abstract node type is the base type for all node types that specify cubic environment map source...
Definition: X3DEnvironmentTextureNode.h:57
virtual GLbitfield getAffectedGLAttribs()
Returns a bitmask of the OpenGL attrib bits that will be affected by this node.
Definition: X3DTextureNode.h:110
virtual void preRender()
This function will be called by the X3DShapeNode before any rendering of geometry and before the call...
Definition: X3DTextureNode.h:96
The X3DViewpointNode node defines a specific location in the local coordinate system from which the u...
Definition: X3DViewpointNode.h:239
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194