MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRenderToImage.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRViewerFwd.h"
4
5#include <optional>
6
7namespace MR
8{
11
12
24MRVIEWER_API Image renderToImage(
25 const Vector2i& resolution,
26 const std::optional<Color>& backgroundColor,
27 const std::function<void( FramebufferData* framebuffer )>& drawFunc
28);
29
30}
class for easier rendering in framebuffer texture
Definition MRRenderGLHelpers.h:217
MRVIEWER_API Image renderToImage(const Vector2i &resolution, const std::optional< Color > &backgroundColor, const std::function< void(FramebufferData *framebuffer)> &drawFunc)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRImage.h:19