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

#include <MRRenderGLHelpers.h>

Classes

struct  DrawParams
 

Public Member Functions

MRVIEWER_API void gen (const Vector2i &size, bool copyDepth, int msaaPow, bool highPrecisionDepth=false)
 
MRVIEWER_API void bind (bool clear=true, float clearDepth=1.0f)
 
MRVIEWER_API void bindDefault ()
 
MRVIEWER_API void bindTexture (bool color=true, bool depth=true)
 
MRVIEWER_API void copyTextureBindDef ()
 
MRVIEWER_API void del ()
 
unsigned getColorTexture () const
 
unsigned getDepthTexture () const
 
const Vector2i & getSize () const
 
bool isBound () const
 
MRVIEWER_API void draw (QuadTextureVertexObject &quadObject, const DrawParams &params) const
 

Member Function Documentation

◆ bind()

MRVIEWER_API void MR::FramebufferData::bind ( bool clear = true,
float clearDepth = 1.0f )

◆ bindDefault()

MRVIEWER_API void MR::FramebufferData::bindDefault ( )

◆ bindTexture()

MRVIEWER_API void MR::FramebufferData::bindTexture ( bool color = true,
bool depth = true )

◆ copyTextureBindDef()

MRVIEWER_API void MR::FramebufferData::copyTextureBindDef ( )

◆ del()

MRVIEWER_API void MR::FramebufferData::del ( )

◆ draw()

MRVIEWER_API void MR::FramebufferData::draw ( QuadTextureVertexObject & quadObject,
const DrawParams & params ) const

◆ gen()

MRVIEWER_API void MR::FramebufferData::gen ( const Vector2i & size,
bool copyDepth,
int msaaPow,
bool highPrecisionDepth = false )

◆ getColorTexture()

unsigned MR::FramebufferData::getColorTexture ( ) const
inline

◆ getDepthTexture()

unsigned MR::FramebufferData::getDepthTexture ( ) const
inline

◆ getSize()

const Vector2i & MR::FramebufferData::getSize ( ) const
inline

◆ isBound()

bool MR::FramebufferData::isBound ( ) const
inline

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