MeshLib C++ Docs
Loading...
Searching...
No Matches
MRDepthPeelingGL.h
Go to the documentation of this file.
1
#pragma once
2
#include "MRViewerFwd.h"
3
#include "
MRRenderGLHelpers.h
"
4
5
namespace
MR
6
{
9
10
12
class
MRVIEWER_CLASS
DepthPeelingGL
13
{
14
public
:
15
MR_ADD_CTOR_DELETE_MOVE
(
DepthPeelingGL
);
16
19
MRVIEWER_API
void
reset
(
const
Vector2i& size );
20
23
MRVIEWER_API
bool
doPasses
(
FramebufferData
* bgFramebuffer );
24
26
MRVIEWER_API
void
draw
();
27
29
int
getNumPasses
()
const
{
return
numPasses_; }
30
void
setNumPasses
(
int
passes ) { numPasses_ = passes; }
31
private
:
32
FramebufferData
accumFB_;
33
QuadTextureVertexObject
qt_;
34
int
numPasses_{ 5 };
35
};
36
37
}
MRRenderGLHelpers.h
MR::DepthPeelingGL
class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available
Definition
MRDepthPeelingGL.h:13
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::DepthPeelingGL::getNumPasses
int getNumPasses() const
functions to control number of passes
Definition
MRDepthPeelingGL.h:29
MR::DepthPeelingGL::doPasses
MRVIEWER_API bool doPasses(FramebufferData *bgFramebuffer)
MR::DepthPeelingGL::reset
MRVIEWER_API void reset(const Vector2i &size)
MR::DepthPeelingGL::setNumPasses
void setNumPasses(int passes)
Definition
MRDepthPeelingGL.h:30
MR::DepthPeelingGL::draw
MRVIEWER_API void draw()
draws this result texture onto
MR::DepthPeelingGL::MR_ADD_CTOR_DELETE_MOVE
MR_ADD_CTOR_DELETE_MOVE(DepthPeelingGL)
MR
only for bindings generation
Definition
MRCameraOrientationPlugin.h:8
MeshLib
source
MRViewer
MRDepthPeelingGL.h
Generated by
1.11.0