![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Resource containing transform information for rendering. More...
#include <C_renderStates.hpp>
Public Member Functions | |
void | set (fge::TransformUboData const &data) |
void | set (uint32_t globalTransformsIndex, Configs config=Configs::DEFAULT) |
fge::TransformUboData const * | getTransformData () const |
std::optional< uint32_t > | getGlobalTransformsIndex () const |
Configs | getConfig () const |
Resource containing transform information for rendering.
A transform is a default uniform buffer containing a model matrix and a view matrix. It is generally used in every object that needs to be rendered. The transform is optional, if set to nullptr, no transform descriptor will be bound and the user have to provide their own descriptors in RenderResourceInstances (dynamic descriptors) or in RenderResourceDescriptors.
The transform descriptor is bound to the FGE_RENDERTARGET_DEFAULT_DESCRIPTOR_SET_TRANSFORM set, binding 0.