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

class for easier rendering in framebuffer texture More...

#include <MRViewer/MRRenderGLHelpers.h>

Classes

struct  DrawParams

Public Member Functions

void gen (const Vector2i &size, bool copyDepth, int msaaPow, bool highPrecisionDepth=false)
void bind (bool clear=true, float clearDepth=1.0f)
void bindDefault ()
void bindTexture (bool color=true, bool depth=true)
 marks the texture to reading
void copyTextureBindDef ()
void del ()
 removes this framebuffer
unsigned getColorTexture () const
 gets texture id for binding in other shaders
unsigned getDepthTexture () const
const Vector2i & getSize () const
bool isBound () const
 return true if texture is bound
void draw (QuadTextureVertexObject &quadObject, const DrawParams &params) const
 draws this framebuffer using quadObject

Detailed Description

class for easier rendering in framebuffer texture


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