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