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
{
7
9
class
MRVIEWER_CLASS
DepthPeelingGL
10
{
11
public
:
12
MR_ADD_CTOR_DELETE_MOVE
(
DepthPeelingGL
);
13
16
MRVIEWER_API
void
reset
(
const
Vector2i& size );
17
20
MRVIEWER_API
bool
doPasses
(
FramebufferData
* bgFramebuffer );
21
23
MRVIEWER_API
void
draw
();
24
26
int
getNumPasses
()
const
{
return
numPasses_; }
27
void
setNumPasses
(
int
passes ) { numPasses_ = passes; }
28
private
:
29
FramebufferData
accumFB_;
30
QuadTextureVertexObject
qt_;
31
int
numPasses_{ 5 };
32
};
33
34
}
MRRenderGLHelpers.h
MRViewerFwd.h
MR::DepthPeelingGL
class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available
Definition
MRDepthPeelingGL.h:10
MR::DepthPeelingGL::getNumPasses
int getNumPasses() const
functions to control number of passes
Definition
MRDepthPeelingGL.h:26
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:27
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::FramebufferData
Definition
MRRenderGLHelpers.h:214
MR::QuadTextureVertexObject
Definition
MRRenderGLHelpers.h:199
MR
Definition
MRCameraOrientationPlugin.h:8
MeshLib
source
MRViewer
MRDepthPeelingGL.h
Generated by
1.11.0