SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::RenderEngine::TransformBuffer Struct Reference

Per-draw world-view-projection and world matrices. More...

#include <ConstantBuffer.hpp>

Inheritance diagram for Sleak::RenderEngine::TransformBuffer:

Public Member Functions

 TransformBuffer (const Sleak::Math::Matrix4 &mvp)
 Takes a pre-composed WVP with an identity world matrix (e.g. skybox, UI).
 TransformBuffer (const Sleak::Math::Matrix4 &world, const Sleak::Math::Matrix4 &view, const Sleak::Math::Matrix4 &proj)
 Composes WVP from world/view/proj and keeps World separately for lighting.
virtual void * GetData () const override
virtual uint16_t GetSize () const override

Detailed Description

Per-draw world-view-projection and world matrices.

Definition at line 83 of file ConstantBuffer.hpp.

Constructor & Destructor Documentation

◆ TransformBuffer() [1/2]

Sleak::RenderEngine::TransformBuffer::TransformBuffer ( const Sleak::Math::Matrix4 & world,
const Sleak::Math::Matrix4 & view,
const Sleak::Math::Matrix4 & proj )
inline

Composes WVP from world/view/proj and keeps World separately for lighting.

Definition at line 86 of file ConstantBuffer.hpp.

◆ TransformBuffer() [2/2]

Sleak::RenderEngine::TransformBuffer::TransformBuffer ( const Sleak::Math::Matrix4 & mvp)
inlineexplicit

Takes a pre-composed WVP with an identity world matrix (e.g. skybox, UI).

Definition at line 93 of file ConstantBuffer.hpp.

Member Function Documentation

◆ GetData()

virtual void * Sleak::RenderEngine::TransformBuffer::GetData ( ) const
inlineoverridevirtual

Implements Sleak::RenderEngine::ConstantBuffer.

Definition at line 97 of file ConstantBuffer.hpp.

◆ GetSize()

virtual uint16_t Sleak::RenderEngine::TransformBuffer::GetSize ( ) const
inlineoverridevirtual

Implements Sleak::RenderEngine::ConstantBuffer.

Definition at line 101 of file ConstantBuffer.hpp.