text: #pragma once
  #if defined(COOL_OPENGL)
  
  #include "FrameBuffer.h"
  
  namespace Cool {
  
  class TextureFB : public FrameBuffer {
  public:
      TextureFB() = default;
      ~TextureFB();
  
      void   attachTextureToSlot(unsigned int slot) const;
      GLuint textureID() const { return m_colorTextureId; }
  
  private:
      void createAttachments(img::Size size) override;
      void destroyAttachments() override;
      void attachAttachments() override;
  
  private:
      GLuint m_colorTextureId = static_cast<GLuint>(-1);
  };
  
  } // namespace Cool
  
  #endif