gz/rendering/RenderPassSystem.hh File Reference
#include <map>
#include <memory>
#include <string>
#include <typeinfo>
#include <gz/utils/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 | |
gz | |
gz::rendering | |
Rendering classes and function useful in robot applications. | |
Macros | |
#define | GZ_RENDERING_REGISTER_RENDER_PASS(classname, interface) |
Render pass registration macro. More... | |
Macro Definition Documentation
◆ GZ_RENDERING_REGISTER_RENDER_PASS
#define GZ_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.