#include <rendering_mode.H>
Inheritance diagram for RenderingMode:
Public Member Functions | |
virtual | ~RenderingMode () |
virtual void | setup_for_drawing_outside_dl (const Patch *patch) |
Setup the OpenGL state for rendering in this mode. This method will be called each time the style is drawn. | |
virtual void | setup_for_drawing_inside_dl (const Patch *patch) |
Setup the OpenGL state for rendering in this mode. This method will be called once inside a display list. | |
virtual void | after_drawing_outside_dl (const Patch *patch) |
Perform any operations that should happen after drawing is complete. This method will be called each time the style is drawn. | |
virtual void | after_drawing_inside_dl (const Patch *patch) |
Perform any operations that should happen after drawing is complete. This method will be called once inside a display list. | |
virtual GLStripCB * | get_new_strip_cb () const =0 |
Get a newly allocated object of the GLStripCB class used by this mode. | |
Classes | |
class | RenderingModeStripCB |
Rendering modes determine how a gTexture is rendered (for example, using just shaders, using shaders and textures, or using no shaders).
Concrete rendering modes should subclass this class and override one or more of the setup_for_drawing or after_drawing methods. Subclasses should also create their own subclass of RenderingModeStripCB to act as the GLStripCB for their gTexture. The get_new_strip_cb() method should be overriden to return a newly allocated one of these RenderingModeStripCB subclasses.
Definition at line 35 of file rendering_mode.H.
|
Definition at line 43 of file rendering_mode.H. |
|
Perform any operations that should happen after drawing is complete. This method will be called once inside a display list.
Definition at line 67 of file rendering_mode.H. Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::after_drawing_inside_dl(). |
|
Perform any operations that should happen after drawing is complete. This method will be called each time the style is drawn.
Reimplemented in LineDrawingGLSLMode. Definition at line 63 of file rendering_mode.H. Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::after_drawing_outside_dl(). |
|
Get a newly allocated object of the GLStripCB class used by this mode.
Implemented in CurvatureARBvpARBfpMultiTextureMode, LineDrawingVprogFprogNoSSDMode, and LineDrawingGLSLMode. Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::get_new_strip_cb(). |
|
Setup the OpenGL state for rendering in this mode. This method will be called once inside a display list.
Reimplemented in CurvatureARBvpARBfpMultiTextureMode, LineDrawingVprogFprogNoSSDMode, and LineDrawingGLSLMode. Definition at line 55 of file rendering_mode.H. Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::setup_for_drawing_inside_dl(). |
|
Setup the OpenGL state for rendering in this mode. This method will be called each time the style is drawn.
Reimplemented in CurvatureARBvpARBfpMultiTextureMode, LineDrawingVprogFprogNoSSDMode, and LineDrawingGLSLMode. Definition at line 51 of file rendering_mode.H. Referenced by RenderingModeSingleton< RenderingModeSelectionPolicy >::setup_for_drawing_outside_dl(). |