Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::DepthAtlasFrameBuffer Class Reference

#include <DepthAtlasFrameBuffer.hpp>

Public Member Functions

 DepthAtlasFrameBuffer (int texturesInAtlas, GLenum minFilter=GL_NEAREST, GLenum magFilter=GL_NEAREST, GLenum wrapS=GL_CLAMP_TO_EDGE, GLenum wrapT=GL_CLAMP_TO_EDGE)
 
 ~DepthAtlasFrameBuffer ()
 
 DepthAtlasFrameBuffer (const DepthAtlasFrameBuffer &other)=delete
 
DepthAtlasFrameBufferoperator= (const DepthAtlasFrameBuffer &other)=delete
 
 DepthAtlasFrameBuffer (DepthAtlasFrameBuffer &&other) noexcept
 
DepthAtlasFrameBufferoperator= (DepthAtlasFrameBuffer &&other) noexcept
 
void bind ()
 
void bind (int index)
 
void unbind ()
 
void clear ()
 
void setSize (uint32_t width, uint32_t height)
 
const TexturegetTexture () const
 
int getNumberOfTextures () const
 

Private Member Functions

void setupFramebuffer ()
 

Private Attributes

int _texturesInAtlas
 
int _width
 
int _height
 
GLuint _fbo
 
GLuint _rbo
 
Texture _textureDepthBuffer
 

Constructor & Destructor Documentation

◆ DepthAtlasFrameBuffer() [1/3]

shkyera::DepthAtlasFrameBuffer::DepthAtlasFrameBuffer ( int  texturesInAtlas,
GLenum  minFilter = GL_NEAREST,
GLenum  magFilter = GL_NEAREST,
GLenum  wrapS = GL_CLAMP_TO_EDGE,
GLenum  wrapT = GL_CLAMP_TO_EDGE 
)

◆ ~DepthAtlasFrameBuffer()

shkyera::DepthAtlasFrameBuffer::~DepthAtlasFrameBuffer ( )

◆ DepthAtlasFrameBuffer() [2/3]

shkyera::DepthAtlasFrameBuffer::DepthAtlasFrameBuffer ( const DepthAtlasFrameBuffer other)
delete

◆ DepthAtlasFrameBuffer() [3/3]

shkyera::DepthAtlasFrameBuffer::DepthAtlasFrameBuffer ( DepthAtlasFrameBuffer &&  other)
noexcept

Member Function Documentation

◆ bind() [1/2]

void shkyera::DepthAtlasFrameBuffer::bind ( )

◆ bind() [2/2]

void shkyera::DepthAtlasFrameBuffer::bind ( int  index)

◆ clear()

void shkyera::DepthAtlasFrameBuffer::clear ( )

◆ getNumberOfTextures()

int shkyera::DepthAtlasFrameBuffer::getNumberOfTextures ( ) const

◆ getTexture()

const Texture & shkyera::DepthAtlasFrameBuffer::getTexture ( ) const
inline

◆ operator=() [1/2]

DepthAtlasFrameBuffer & shkyera::DepthAtlasFrameBuffer::operator= ( const DepthAtlasFrameBuffer other)
delete

◆ operator=() [2/2]

DepthAtlasFrameBuffer & shkyera::DepthAtlasFrameBuffer::operator= ( DepthAtlasFrameBuffer &&  other)
noexcept

◆ setSize()

void shkyera::DepthAtlasFrameBuffer::setSize ( uint32_t  width,
uint32_t  height 
)

◆ setupFramebuffer()

void shkyera::DepthAtlasFrameBuffer::setupFramebuffer ( )
private

◆ unbind()

void shkyera::DepthAtlasFrameBuffer::unbind ( )

Member Data Documentation

◆ _fbo

GLuint shkyera::DepthAtlasFrameBuffer::_fbo
private

◆ _height

int shkyera::DepthAtlasFrameBuffer::_height
private

◆ _rbo

GLuint shkyera::DepthAtlasFrameBuffer::_rbo
private

◆ _textureDepthBuffer

Texture shkyera::DepthAtlasFrameBuffer::_textureDepthBuffer
private

◆ _texturesInAtlas

int shkyera::DepthAtlasFrameBuffer::_texturesInAtlas
private

◆ _width

int shkyera::DepthAtlasFrameBuffer::_width
private

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