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

class for easier rendering in framebuffer texture More...

#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)
 marks the texture to reading
 
MRVIEWER_API void copyTextureBindDef ()
 
MRVIEWER_API 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
 
MRVIEWER_API 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: