X3D libraries
The libraries to work with X3D dataset

render.h File Reference

This header file includes the rendering processor and the interfaces for the actual render in some output. More...

Go to the source code of this file.

Namespaces

namespace  x3drender

Classes

class  x3drender::RenderProcessor
 The interface that a rendering processor implements. More...
class  x3drender::RenderShape
 A class representing a shape in the render state. More...
class  x3drender::RenderState
 Create a render state and then render it. More...

Defines

#define X3D_RENDER_RELEASE   0
#define X3D_RENDER_REVISION   1
#define X3D_RENDER_VERSION   0.1

Typedefs

typedef pointer::SmartPointer<
RenderProcessor > 
x3drender::RenderProcessorPtr
typedef pointer::SmartPointer<
RenderShape > 
x3drender::RenderShapePtr
typedef x3d::Vector< RenderShape, 256 > x3drender::RenderShapeVector
typedef pointer::SmartPointer<
RenderState > 
x3drender::RenderStatePtr

Functions

x3d::LevelOfSupport * x3drender::GetRenderSupport ()
 The level of support of the Render processor.


Detailed Description

This header file includes the rendering processor and the interfaces for the actual render in some output.

Includes the definitions that you need to process a node to get it ready for rendering. The processing is important to compute all the objects position and then order them properly.

See the main page for more information in that regard. All the objects will be rendered from back to front unless hints are used for the processors to ask solid objects to be rendered from front to back. The problem with solid objects is that their edges aren't so solid. Thus even solid objects need to be rendered back to front now a days. But on older boards, you may want to hint the system to swap that order and forget about the antialised edges.

Once ready, you will just need to use one of the available render libraries such as the OpenGL one to draw the result on a surface.

See also:
opengl.h

Define Documentation

#define X3D_RENDER_RELEASE   0
 

#define X3D_RENDER_REVISION   1
 

#define X3D_RENDER_VERSION   0.1