MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSceneTextureGL.h
Go to the documentation of this file.
1#pragma once
2#include "MRRenderGLHelpers.h"
3
4namespace MR
5{
8
11{
12public:
15 void bind( bool clear );
17 void unbind();
21 void reset( const Vector2i& size, int msaaPow, bool depthTexture );
25 void draw();
27 bool isBound() const { return fd_.isBound(); }
28
30private:
33};
34
35}
class for easier rendering in framebuffer texture
Definition MRRenderGLHelpers.h:217
class for rendering simple texture
Definition MRRenderGLHelpers.h:202
Class for rendering 3d scene into texture.
Definition MRSceneTextureGL.h:11
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:32
bool isBound() const
return true if texture is bound
Definition MRRenderGLHelpers.h:243
void reset(const Vector2i &size, int msaaPow, bool depthTexture)
void copyTexture()
copy texture so draw() can render it
FramebufferData & getFramebuffer()
Definition MRSceneTextureGL.h:29
void unbind()
binds default framebuffer (and read/draw framebuffers)
void draw()
renders texture
void bind(bool clear)
bool isBound() const
return true if texture is bound
Definition MRSceneTextureGL.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8