#include
<oglplus/dsa/framebuffer.hpp>
template <> class ObjectOps<tag::DirectState, tag::Framebuffer> : public ObjZeroOps<tag::DirectState, tag::Framebuffer>{ public: struct Property { typedef OneOf< FramebufferBuffer, FramebufferAttachment, FramebufferColorAttachment > Buffer;
typedef OneOf< FramebufferAttachment, FramebufferColorAttachment > Attachment;
typedef FramebufferStatus Status; }; void Bind(FramebufferTarget target); FramebufferStatus Status(FramebufferTarget target) const;
bool IsComplete(FramebufferTarget target) const;
void Complete(FramebufferTarget target) const;
void AttachRenderbuffer( Property::Attachment attachment, RenderbufferName renderbuffer );
void AttachColorRenderbuffer( FramebufferColorAttachmentNumber attachment_no, RenderbufferName renderbuffer );
void AttachTexture( Property::Attachment attachment, TextureName texture, GLint level );
void AttachColorTexture( FramebufferColorAttachmentNumber attachment_no, TextureName texture, GLint level );
void AttachTextureLayer( Property::Attachment attachment, TextureName texture, GLint level, GLint layer );
};
Indirectly inherits from ObjCommonOps<tag::Framebuffer>. |
|
Enumerations specifying framebuffer output buffer. |
|
Enumerations specifying framebuffer attachments. |
|
Returns the status of |
|
Returns true if |
|
Throws an IncompleteFramebuffer
exception if |
|
Attaches a |
|
Attaches a |
|
Attaches the specified |
|
Attaches the specified |
|
Attaches the |
typedef ObjectOps<tag::DirectState, tag::Framebuffer> DSAFramebufferOps; typedef Object<DSAFramebufferOps> DSAFramebuffer;
struct DSAFramebufferOpsAndAttch { };DSAFramebufferOpsAndAttch operator << ( DSAFramebufferOps& fbo, DSAFramebufferOps::Property::Attachment attch ); DSAFramebufferOps& operator << ( DSAFramebufferOps& fbo, FramebufferTarget target );
DSAFramebufferOps& operator << ( DSAFramebufferOpsAndAttch&& faa, TextureName tex );
DSAFramebufferOps& operator << ( DSAFramebufferOpsAndAttch&& faa, RenderbufferName rbo );
![]()