Graphite  Version 3
An experimental 3D geometry processing program
OGF::ogf_register_grob_shader< T1, T2 > Class Template Reference

Helper class to register a new Shader associated with a Grob. More...

#include <OGF/scene_graph/types/scene_graph_library.h>

Public Member Functions

 ogf_register_grob_shader (const std::string &shader_user_name="")
 Registers a new Shader associated with a Grob. More...
 

Detailed Description

template<class T1, class T2>
class OGF::ogf_register_grob_shader< T1, T2 >

Helper class to register a new Shader associated with a Grob.

Template Parameters
T1the Grob class
T2the Shader class

Definition at line 515 of file scene_graph_library.h.

Constructor & Destructor Documentation

◆ ogf_register_grob_shader()

template<class T1 , class T2 >
OGF::ogf_register_grob_shader< T1, T2 >::ogf_register_grob_shader ( const std::string &  shader_user_name = "")
inline

Registers a new Shader associated with a Grob.

Parameters
[in]shader_user_namean optional shader name to be exposed to the user instead of the Shader class name.

Example:

ogf_register_grob_shader<Mesh, PlainMeshShader>("Plain");

Definition at line 527 of file scene_graph_library.h.


The documentation for this class was generated from the following file: