Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::VulkanFrameBuffer Class Reference

Vulkan framebuffer object for off-screen rendering. More...

#include <C:/Code/AeonEngine/engine/renderers/vulkan/VulkanFrameBuffer.hpp>

Inheritance diagram for AeonGames::VulkanFrameBuffer:
Inheritance graph
Collaboration diagram for AeonGames::VulkanFrameBuffer:
Collaboration graph

Public Member Functions

void LoadFromPBMsg (const FrameBufferMsg &aFrameBufferMsg)
 Initialize the frame buffer from a protobuf message.
void Unload ()
 Release all resources held by this frame buffer.
void Resize (uint32_t aWidth, uint32_t aHeight)
 Resize the frame buffer to new dimensions.
void Bind ()
 Bind this frame buffer as the current render target.
void Unbind ()
 Unbind this frame buffer, restoring the previous render target.
Public Member Functions inherited from AeonGames::Resource
virtual ~Resource ()
 Virtual destructor.
virtual void LoadFromMemory (const void *aBuffer, size_t aBufferSize)=0
 Load the resource from a raw memory buffer.
DLL void LoadFromId (uint32_t aId)
 Load the resource identified by a numeric id.
DLL void LoadFromFile (const std::string &aFilename)
 Load the resource from a file on disk.
DLL size_t GetConsecutiveId () const
 Get the Consecutive Id for the resource object.

Detailed Description

Vulkan framebuffer object for off-screen rendering.

Definition at line 25 of file VulkanFrameBuffer.hpp.

Constructor & Destructor Documentation

◆ ~VulkanFrameBuffer()

AeonGames::VulkanFrameBuffer::~VulkanFrameBuffer ( )

Definition at line 32 of file VulkanFrameBuffer.cpp.

Member Function Documentation

◆ Bind()

void AeonGames::VulkanFrameBuffer::Bind ( )
virtual

Bind this frame buffer as the current render target.

Implements AeonGames::FrameBuffer.

Definition at line 45 of file VulkanFrameBuffer.cpp.

◆ LoadFromPBMsg()

void AeonGames::VulkanFrameBuffer::LoadFromPBMsg ( const FrameBufferMsg & aFrameBufferMsg)
virtual

Initialize the frame buffer from a protobuf message.

Parameters
aFrameBufferMsgProtobuf message describing the frame buffer configuration.
Todo
Write Me

Implements AeonGames::FrameBuffer.

Definition at line 36 of file VulkanFrameBuffer.cpp.

◆ Resize()

void AeonGames::VulkanFrameBuffer::Resize ( uint32_t aWidth,
uint32_t aHeight )
virtual

Resize the frame buffer to new dimensions.

Parameters
aWidthNew width in pixels.
aHeightNew height in pixels.

Implements AeonGames::FrameBuffer.

Definition at line 44 of file VulkanFrameBuffer.cpp.

◆ Unbind()

void AeonGames::VulkanFrameBuffer::Unbind ( )
virtual

Unbind this frame buffer, restoring the previous render target.

Implements AeonGames::FrameBuffer.

Definition at line 46 of file VulkanFrameBuffer.cpp.

◆ Unload()

void AeonGames::VulkanFrameBuffer::Unload ( )
virtual

Release all resources held by this frame buffer.

Todo
Write Me

Implements AeonGames::FrameBuffer.

Definition at line 40 of file VulkanFrameBuffer.cpp.


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