Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::DeferredRenderer Class Reference
Inheritance diagram for Grindstone::DeferredRenderer:
Grindstone::BaseRenderer

Public Types

enum class  DeferredRenderMode : uint16_t {
  Default , Position , PositionMod , ViewPosition ,
  ViewPositionMod , Depth , DepthMod , Normal ,
  ViewNormal , Albedo , Specular , Roughness ,
  AmbientOcclusion , Count
}
 

Public Member Functions

 DeferredRenderer (GraphicsAPI::RenderPass *targetRenderPass)
 
virtual bool OnWindowResize (Events::BaseEvent *) override
 
virtual void Resize (uint32_t width, uint32_t height) override
 
virtual void Render (GraphicsAPI::CommandBuffer *commandBuffer, entt::registry &registry, glm::mat4 projectionMatrix, glm::mat4 viewMatrix, glm::vec3 eyePos, GraphicsAPI::Framebuffer *outputFramebuffer) override
 
virtual uint16_t GetRenderModeCount () const override
 
virtual const RenderModeGetRenderModes () const override
 
virtual void SetRenderMode (uint16_t mode) override
 
- Public Member Functions inherited from Grindstone::BaseRenderer

Static Public Attributes

static GraphicsAPI::RenderPassgbufferRenderPass = nullptr
 
static GraphicsAPI::RenderPassmainRenderPass = nullptr
 

Member Function Documentation

◆ GetRenderModeCount()

uint16_t DeferredRenderer::GetRenderModeCount ( ) const
overridevirtual

◆ GetRenderModes()

const Grindstone::BaseRenderer::RenderMode * DeferredRenderer::GetRenderModes ( ) const
overridevirtual

◆ OnWindowResize()

bool DeferredRenderer::OnWindowResize ( Events::BaseEvent * ev)
overridevirtual

◆ Render()

void DeferredRenderer::Render ( GraphicsAPI::CommandBuffer * commandBuffer,
entt::registry & registry,
glm::mat4 projectionMatrix,
glm::mat4 viewMatrix,
glm::vec3 eyePos,
GraphicsAPI::Framebuffer * outputFramebuffer )
overridevirtual

◆ Resize()

void DeferredRenderer::Resize ( uint32_t width,
uint32_t height )
overridevirtual

◆ SetRenderMode()

void DeferredRenderer::SetRenderMode ( uint16_t mode)
overridevirtual

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