AnimEngine
fbo_interface.hpp
1 #pragma once
2 #ifndef KJY_OBJECT_ORIENTED_OPENGL_FRAMEBUFFER_INTERFACE_HPP_
3 #define KJY_OBJECT_ORIENTED_OPENGL_FRAMEBUFFER_INTERFACE_HPP_
4 #include <glad/glad.h>
5 #include "../OOOGL_Core.hpp"
6 
7 
8 namespace OOOGL{
9 
11  FramebufferAttachable(OglObjectDestroyer destroyer) : OglObject(destroyer) {}
12  enum AttachmentType : GLenum {ATTACHMENT_TEXTURE = GL_TEXTURE_2D, ATTACHMENT_3DTEXTURE = GL_TEXTURE_3D, ATTACHMENT_RENDERBUFFER = GL_RENDERBUFFER, ATTACHMENT_ERROR};
13  virtual AttachmentType getAttachmentType() const {return(ATTACHMENT_ERROR);}
14  protected:
15  friend class Framebuffer;
16  FramebufferAttachable() : OglObject(nullptr) {}
17  FramebufferAttachable(const PersistentOglName& zombie) : OglObject(zombie) {}
18 };
19 
20 }
21 
22 #endif
Definition: Framebuffer.hpp:16
Definition: OOOGL_Core.hpp:105
Definition: OOOGL_Core.hpp:74
Definition: fbo_interface.hpp:10
Definition: Core_Utilities.cpp:3