Gazebo Rendering

API Reference

3.7.2
gz/rendering/RenderPassSystem.hh File Reference
#include <map>
#include <memory>
#include <string>
#include <typeinfo>
#include <gz/common/SuppressWarning.hh>
#include "gz/rendering/config.hh"
#include "gz/rendering/Export.hh"
#include "gz/rendering/RenderPass.hh"
#include "gz/rendering/RenderTypes.hh"

Go to the source code of this file.

Classes

class  RenderPassFactory
 A factory interface for creating render passes. More...
 
class  RenderPassSystem
 A class for creating and managing render passes. More...
 

Namespaces

 ignition
 
 ignition::rendering
 Rendering classes and function useful in robot applications.
 

Macros

#define IGN_RENDERING_REGISTER_RENDER_PASS(classname, interface)
 Render pass registration macro. More...
 

Macro Definition Documentation

◆ IGN_RENDERING_REGISTER_RENDER_PASS

#define IGN_RENDERING_REGISTER_RENDER_PASS (   classname,
  interface 
)
Value:
class classname##Factory : public RenderPassFactory \
{ \
public: classname##Factory() \
{ \
RenderPassSystem::Register( \
typeid(interface).name(), this); \
} \
public: RenderPass *New() const override \
{ \
return new classname(); \
} \
}; \
static classname##Factory global_##classname##Factory;

Render pass registration macro.

Use this macro to register render pass with the render pass factory.