#include <RenderProperties.h>
Inheritance diagram for H3D::RenderProperties:

Public Member Functions | |
| RenderProperties (Inst< SFNode > _metadata=0, Inst< DisplayList > _displayList=0, Inst< SFBool > _depthTestEnabled=0, Inst< SFBool > _smoothShading=0) | |
| Constructor. | |
| virtual void | preRender () |
| This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function. | |
| virtual void | postRender () |
| This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender(). | |
| virtual void | render () |
| Set up the line properties with OpenGL. | |
| virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. | |
Public Attributes | |
| auto_ptr< SFBool > | depthTestEnabled |
| The depthTestEnabled field specifies if depth test should be enabled or not. | |
| auto_ptr< SFBool > | smoothShading |
| The smoothShading field specifies if smooth shading should be used. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
The lightingEnabled field specifies if the geometry should take lighting into account when calculating colors. If false the color for each vertex will be used directly.
The depthTestEnabled field specifies if depth test should be enabled or not. If depth test is disabled geometries will be drawn over the current values in the frame buffer regardless of if it is in front of or behind the previous objects drawn.
The smoothShading field specifies if smooth shading should be used. If false, flat shading is used.
|
|
Returns the default xml containerField attribute value. For this node it is "fillProperties". Reimplemented from H3D::Node. |
|
|
This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function. So this is the place to save the states that are going to be changed in render() in order to restore it in postRender(). Reimplemented from H3D::X3DAppearanceChildNode. |
|
|
The depthTestEnabled field specifies if depth test should be enabled or not. If depth test is disabled geometries will be drawn over the current values in the frame buffer regardless of if it is in front of or behind the previous objects drawn.
Access type: inputOutput
|
|
|
The smoothShading field specifies if smooth shading should be used. If false, flat shading is used.
Access type: inputOutput
|
1.4.5