struct mrpt::opengl::FrameBuffer::RAII_Impl

Overview

#include <mrpt/opengl/FrameBuffer.h>

struct RAII_Impl
{
    // structs

    struct State;

    // fields

    Buffer::Type type;
    Buffer::Usage usage = Buffer::Usage::StaticDraw;
    mrpt::containers::PerThreadDataHolder<State> m_state;

    // construction

    RAII_Impl();

    // methods

    void create(
        unsigned int width,
        unsigned int height,
        int nSamples
        );

    void createDepthMap(
        unsigned int width,
        unsigned int height
        );

    void destroy();
    FrameBufferBinding bind();
    void unbind();
};