Hymn to Beauty
C++ 3D Engine
Video::OpenGLRenderTargetAllocator Class Reference

OpenGL implementation of RenderTargetAllocator. More...

#include <OpenGLRenderTargetAllocator.hpp>

Inheritance diagram for Video::OpenGLRenderTargetAllocator:
Video::RenderTargetAllocator

Public Member Functions

 OpenGLRenderTargetAllocator (uint8_t frames, RenderPassAllocator *renderPassAllocator)
 Create a new render target allocator. More...
 
 ~OpenGLRenderTargetAllocator () final
 Destructor. More...
 
- Public Member Functions inherited from Video::RenderTargetAllocator
 RenderTargetAllocator (uint8_t frames, RenderPassAllocator *renderPassAllocator)
 Create a new render target allocator. More...
 
virtual ~RenderTargetAllocator ()
 Destructor. More...
 
virtual void BeginFrame ()
 Call at the beginning of each frame. More...
 
TextureCreateRenderTarget (const glm::uvec2 &size, Texture::Format format)
 Create a render target. More...
 
void FreeRenderTarget (Texture *renderTarget)
 Free a render target. More...
 

Detailed Description

OpenGL implementation of RenderTargetAllocator.

Constructor & Destructor Documentation

◆ OpenGLRenderTargetAllocator()

Video::OpenGLRenderTargetAllocator::OpenGLRenderTargetAllocator ( uint8_t  frames,
RenderPassAllocator renderPassAllocator 
)

Create a new render target allocator.

Parameters
framesHow many frames before re-using buffers.
renderPassAllocatorRender pass allocator.

◆ ~OpenGLRenderTargetAllocator()

Video::OpenGLRenderTargetAllocator::~OpenGLRenderTargetAllocator ( )
final

Destructor.


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