17#include <lagrange/ui/types/GLContext.h>
18#include <lagrange/ui/types/Texture.h>
19#include <lagrange/ui/api.h>
47 void resize_attachments(
int w,
int h);
56 void set_depth_attachement(
57 std::shared_ptr<Texture> t,
58 GLenum target = GL_TEXTURE_2D,
59 int mipmap_level = 0);
61 void set_color_attachement(
63 std::shared_ptr<Texture> t,
64 GLenum target = GL_TEXTURE_2D,
65 int mipmap_level = 0);
67 GLuint get_id()
const;
69 bool check_status()
const;
72 std::shared_ptr<Texture> get_color_attachement(
int index)
const;
73 std::shared_ptr<Texture> get_depth_attachment()
const;
75 static int get_max_color_attachments();
77 bool has_color_attachment()
const
79 return m_color_attachments.size() > 0 && (m_color_attachments.front() !=
nullptr);
82 bool has_depth_attachement()
const {
return m_depth_attachment !=
nullptr; }
86 std::vector<std::shared_ptr<Texture>> m_color_attachments;
87 std::shared_ptr<Texture> m_depth_attachment;
Definition: FrameBuffer.h:30
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30