Just™ Game Engine
Classes | Public Member Functions | List of all members
jng::Framebuffer Class Referencefinal

#include <framebuffer.hpp>

Classes

struct  Properties
 

Public Member Functions

 Framebuffer (const Properties &properties)
 
 ~Framebuffer ()
 
void bind () const
 
void unbind () const
 
void resize (u32 width, u32 height)
 
u32 readPixel (u32 colorAttachmentIndex, u32 x, u32 y) const
 
void clearAttachment (u32 attachmentIndex, int value) const
 
void clearAttachment (u32 attachmentIndex, float value) const
 
const std::vector< Ref< Texture > > & getAttachments () const
 
const PropertiesgetProperties () const
 

Constructor & Destructor Documentation

◆ Framebuffer()

jng::Framebuffer::Framebuffer ( const Properties properties)
explicit

◆ ~Framebuffer()

jng::Framebuffer::~Framebuffer ( )

Member Function Documentation

◆ bind()

void jng::Framebuffer::bind ( ) const

◆ clearAttachment() [1/2]

void jng::Framebuffer::clearAttachment ( u32  attachmentIndex,
float  value 
) const

◆ clearAttachment() [2/2]

void jng::Framebuffer::clearAttachment ( u32  attachmentIndex,
int  value 
) const

◆ getAttachments()

const std::vector< Ref< Texture > > & jng::Framebuffer::getAttachments ( ) const
inline

◆ getProperties()

const Properties & jng::Framebuffer::getProperties ( ) const
inline

◆ readPixel()

u32 jng::Framebuffer::readPixel ( u32  colorAttachmentIndex,
u32  x,
u32  y 
) const

◆ resize()

void jng::Framebuffer::resize ( u32  width,
u32  height 
)

◆ unbind()

void jng::Framebuffer::unbind ( ) const

The documentation for this class was generated from the following files: