9#include <Common/primitive_type.h>
10#include <Math/TVector4.h>
71 void clearColor(uint32 attachmentIdx,
const math::Vector4F& color);
79 void createDeviceColorTexture(uint32 attachmentIndex);
80 void createDeviceDepthStencilTexture();
81 static std::string getFramebufferStatusInfo(GLuint
framebufferID);
bool isEmpty() const
Definition TWeakHandle.h:62
Definition ghi_infos.h:124
Definition OpenglFramebuffer.h:21
TextureHandle handle
Definition OpenglFramebuffer.h:24
GLenum internalFormat
Definition OpenglFramebuffer.h:23
bool isAttached() const
Definition OpenglFramebuffer.h:26
Definition OpenglFramebuffer.h:33
TextureHandle handle
Definition OpenglFramebuffer.h:37
bool isAttached() const
Definition OpenglFramebuffer.h:39
GLenum attachmentType
Definition OpenglFramebuffer.h:36
GLenum internalFormat
Definition OpenglFramebuffer.h:35
Definition OpenglFramebuffer.h:46
static constexpr GLuint MAX_COLOR_ATTACHMENTS
Definition OpenglFramebuffer.h:49
GLsizei heightPx
Definition OpenglFramebuffer.h:53
std::array< OpenglColorAttachment, MAX_COLOR_ATTACHMENTS > colorAttachments
Definition OpenglFramebuffer.h:55
bool checkCompleteness()
Definition OpenglFramebuffer.cpp:292
void bind()
Definition OpenglFramebuffer.cpp:214
GLuint framebufferID
Definition OpenglFramebuffer.h:51
OpenglDepthStencilAttachment depthStencilAttachment
Definition OpenglFramebuffer.h:56
void createBuffer(const FramebufferDesc &desc)
Definition OpenglFramebuffer.cpp:36
bool hasResource() const
Definition OpenglFramebuffer.cpp:306
void attachDepthStencil(const OpenglTexture &depthStencilTexture, TextureHandle handle)
Definition OpenglFramebuffer.cpp:158
void attachColor(uint32 attachmentIdx, const OpenglTexture &colorTexture, TextureHandle handle)
Definition OpenglFramebuffer.cpp:97
void clearDepthStencil(float32 depth, uint8 stencil)
Definition OpenglFramebuffer.cpp:243
void unbind()
Definition OpenglFramebuffer.cpp:220
GLsizei numSamples
Definition OpenglFramebuffer.h:54
void clearColor(uint32 attachmentIdx, const math::Vector4F &color)
Definition OpenglFramebuffer.cpp:225
GLsizei widthPx
Definition OpenglFramebuffer.h:52
void destroy()
Definition OpenglFramebuffer.cpp:281
Definition OpenglTexture.h:18
Definition PlatformDisplay.h:13