MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::DepthPeelingGL Class Reference

class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available More...

#include <MRDepthPeelingGL.h>

Public Member Functions

 MR_ADD_CTOR_DELETE_MOVE (DepthPeelingGL)
 
MRVIEWER_API void reset (const Vector2i &size)
 
MRVIEWER_API bool doPasses (FramebufferData *bgFramebuffer)
 
MRVIEWER_API void draw ()
 draws this result texture onto
 
int getNumPasses () const
 functions to control number of passes
 
void setNumPasses (int passes)
 

Detailed Description

class to encapsulate depth peeling rendering passes as fall back if alpha sort is not available

Member Function Documentation

◆ doPasses()

MRVIEWER_API bool MR::DepthPeelingGL::doPasses ( FramebufferData * bgFramebuffer)

renders transparent objects into this buffer returns true if there are transparent objects to render

◆ draw()

MRVIEWER_API void MR::DepthPeelingGL::draw ( )

draws this result texture onto

◆ getNumPasses()

int MR::DepthPeelingGL::getNumPasses ( ) const
inline

functions to control number of passes

◆ MR_ADD_CTOR_DELETE_MOVE()

MR::DepthPeelingGL::MR_ADD_CTOR_DELETE_MOVE ( DepthPeelingGL )

◆ reset()

MRVIEWER_API void MR::DepthPeelingGL::reset ( const Vector2i & size)

if present-> del();gen(); otherwise just gen()

◆ setNumPasses()

void MR::DepthPeelingGL::setNumPasses ( int passes)
inline

The documentation for this class was generated from the following file: