29 #ifndef __SHADERIMAGENode_H__
30 #define __SHADERIMAGENode_H__
49 Inst< SFNode> _metadata = 0 );
64 virtual unsigned int getImageUnit ( ){
67 virtual void setImageUnit (
unsigned int _image_unit ){
68 image_unit = _image_unit;
71 virtual ~ShaderImageNode ( );
85 static set<unsigned int> global_image_units;
88 static unsigned int max_image_unit;
Header file for H3DSingleTextureNode, X3D scene-graph node.
This abstract node type is the base type for all texture nodes that is defined by a single texture.
Definition: H3DSingleTextureNode.h:45
This is the base node type for the child nodes of the ComposedShader node which is image node type,...
Definition: ShaderImageNode.h:44
virtual void postRender()
override postRender function to do nothing as it is not needed for shader image node
Definition: ShaderImageNode.h:57
GLuint image_unit
image unit used, will be used to bind to shader program the value of image_unit will be maintained in...
Definition: ShaderImageNode.h:80
virtual void disableTexturing()
disableTexturing is not needed for shader image node
Definition: ShaderImageNode.h:62
virtual void preRender()
override preRender function to do nothing as it is not needed for shader image node
Definition: ShaderImageNode.h:53
H3DUniquePtr< Field > reinitShaderImage
flag field to help check if shader image need to be re-initialized
Definition: ShaderImageNode.h:91
virtual void enableTexturing()
enableTexturing is not needed for shader image node
Definition: ShaderImageNode.h:60
H3D API namespace.
Definition: Anchor.h:38