Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::Mesh Class Referenceexport

Public Member Functions

DatagetData ()
Data const * getData () const
VkDescriptorSet const * getDescSet () const
VkDescriptorSet * getDescSet ()
std::vector< material_t > const & getMaterials () const
std::vector< material_t > & getMaterials ()
std::string const getName () const
const std::string getShaderName () const
std::vector< Buffer > * getStorageBuffers ()
std::vector< Buffer > & getUniformBuffers ()
ObjectBuffergetObjectBuffer ()
void addStorageBuffer (Buffer &buffer)
bool isDirty ()
void setData (Data data)
void setDescSet (VkDescriptorSet descset)
void setShadowMapDescSet (VkDescriptorSet descset)
void setCSMDescSet (VkDescriptorSet descset)
void setHasBufferStorage (bool has=true)
void setHasPushConstants (bool has=true)
void setIsDirty (bool dirty=true)
void setDebugNormal (bool const debug)
void setName (std::string const &name)
void setShaderName (std::string_view name)
void setObjectBuffer (ObjectBuffer objectBuffer)
void addUbos (std::vector< std::vector< UniformBufferObject > > const &ubos)
VkDescriptorSet const * getShadowMapDescSet () const
VkDescriptorSet * getShadowMapDescSet ()
VkDescriptorSet const * getCSMDescSet () const
VkDescriptorSet * getCSMDescSet ()
bool hasAnimation () const
bool hasBufferStorage () const
bool hasPushConstants () const
bool hasShadow () const
bool debugNormal () const
void setHasAnimation (bool has=true)
void setIsIndexed (bool indexed)
void setIsPointLight (bool is=true)
void addMaterial (material_t material)
void setHasShadow (bool has_shadow)
bool is_indexed () const
bool is_point_light () const
std::uint32_t getOptions () const
void setOptions (std::uint32_t options)
bool isClipped () const
void clipped (bool clipped)
bool hasBbox () const
void bbox (bool bbox)
bool isSkybox () const
void isSkybox (bool is_skybox)
void addChild (IDType id)
std::vector< IDTypegetChildren ()
void setRoot ()
bool isRoot ()

Public Attributes

VkShaderStageFlags stage_flag_bits { VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT}

Member Function Documentation

◆ addChild()

void Vyroda::Mesh::addChild ( IDType id)
inline

◆ addMaterial()

void Vyroda::Mesh::addMaterial ( material_t material)
inline

◆ addStorageBuffer()

void Vyroda::Mesh::addStorageBuffer ( Buffer & buffer)
Here is the caller graph for this function:

◆ addUbos()

void Vyroda::Mesh::addUbos ( std::vector< std::vector< UniformBufferObject > > const & ubos)

◆ bbox()

void Vyroda::Mesh::bbox ( bool bbox)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipped()

void Vyroda::Mesh::clipped ( bool clipped)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ debugNormal()

bool Vyroda::Mesh::debugNormal ( ) const
inline
Here is the caller graph for this function:

◆ getChildren()

std::vector< IDType > Vyroda::Mesh::getChildren ( )
inline

◆ getCSMDescSet() [1/2]

VkDescriptorSet * Vyroda::Mesh::getCSMDescSet ( )
inline

◆ getCSMDescSet() [2/2]

VkDescriptorSet const * Vyroda::Mesh::getCSMDescSet ( ) const
inline
Here is the caller graph for this function:

◆ getData() [1/2]

Data * Vyroda::Mesh::getData ( )
inline
Here is the caller graph for this function:

◆ getData() [2/2]

Data const * Vyroda::Mesh::getData ( ) const
inline

◆ getDescSet() [1/2]

VkDescriptorSet * Vyroda::Mesh::getDescSet ( )
inline

◆ getDescSet() [2/2]

VkDescriptorSet const * Vyroda::Mesh::getDescSet ( ) const
inline
Here is the caller graph for this function:

◆ getMaterials() [1/2]

std::vector< material_t > & Vyroda::Mesh::getMaterials ( )
inline

◆ getMaterials() [2/2]

std::vector< material_t > const & Vyroda::Mesh::getMaterials ( ) const
inline
Here is the caller graph for this function:

◆ getName()

std::string const Vyroda::Mesh::getName ( ) const
inline

◆ getObjectBuffer()

ObjectBuffer * Vyroda::Mesh::getObjectBuffer ( )
inline

◆ getOptions()

std::uint32_t Vyroda::Mesh::getOptions ( ) const
inline
Here is the caller graph for this function:

◆ getShaderName()

const std::string Vyroda::Mesh::getShaderName ( ) const
inline
Here is the caller graph for this function:

◆ getShadowMapDescSet() [1/2]

VkDescriptorSet * Vyroda::Mesh::getShadowMapDescSet ( )
inline

◆ getShadowMapDescSet() [2/2]

VkDescriptorSet const * Vyroda::Mesh::getShadowMapDescSet ( ) const
inline
Here is the caller graph for this function:

◆ getStorageBuffers()

std::vector< Buffer > * Vyroda::Mesh::getStorageBuffers ( )
inline
Here is the caller graph for this function:

◆ getUniformBuffers()

std::vector< Buffer > & Vyroda::Mesh::getUniformBuffers ( )
inline
Here is the caller graph for this function:

◆ hasAnimation()

bool Vyroda::Mesh::hasAnimation ( ) const
inline

◆ hasBbox()

bool Vyroda::Mesh::hasBbox ( ) const
inline

◆ hasBufferStorage()

bool Vyroda::Mesh::hasBufferStorage ( ) const
inline

◆ hasPushConstants()

bool Vyroda::Mesh::hasPushConstants ( ) const
inline

◆ hasShadow()

bool Vyroda::Mesh::hasShadow ( ) const
inline

◆ is_indexed()

bool Vyroda::Mesh::is_indexed ( ) const
inline
Here is the caller graph for this function:

◆ is_point_light()

bool Vyroda::Mesh::is_point_light ( ) const
inline

◆ isClipped()

bool Vyroda::Mesh::isClipped ( ) const
inline

◆ isDirty()

bool Vyroda::Mesh::isDirty ( )
inline
Here is the caller graph for this function:

◆ isRoot()

bool Vyroda::Mesh::isRoot ( )
inline

◆ isSkybox() [1/2]

bool Vyroda::Mesh::isSkybox ( ) const
inline
Here is the caller graph for this function:

◆ isSkybox() [2/2]

void Vyroda::Mesh::isSkybox ( bool is_skybox)
inline

◆ setCSMDescSet()

void Vyroda::Mesh::setCSMDescSet ( VkDescriptorSet descset)
inline

◆ setData()

void Vyroda::Mesh::setData ( Data data)
inline
Here is the caller graph for this function:

◆ setDebugNormal()

void Vyroda::Mesh::setDebugNormal ( bool const debug)
inline

◆ setDescSet()

void Vyroda::Mesh::setDescSet ( VkDescriptorSet descset)
inline

◆ setHasAnimation()

void Vyroda::Mesh::setHasAnimation ( bool has = true)
inline

◆ setHasBufferStorage()

void Vyroda::Mesh::setHasBufferStorage ( bool has = true)
inline
Here is the caller graph for this function:

◆ setHasPushConstants()

void Vyroda::Mesh::setHasPushConstants ( bool has = true)
inline

◆ setHasShadow()

void Vyroda::Mesh::setHasShadow ( bool has_shadow)
inline
Here is the caller graph for this function:

◆ setIsDirty()

void Vyroda::Mesh::setIsDirty ( bool dirty = true)
inline
Here is the caller graph for this function:

◆ setIsIndexed()

void Vyroda::Mesh::setIsIndexed ( bool indexed)
inline
Here is the caller graph for this function:

◆ setIsPointLight()

void Vyroda::Mesh::setIsPointLight ( bool is = true)
inline

◆ setName()

void Vyroda::Mesh::setName ( std::string const & name)
inline
Here is the caller graph for this function:

◆ setObjectBuffer()

void Vyroda::Mesh::setObjectBuffer ( ObjectBuffer objectBuffer)
inline
Here is the caller graph for this function:

◆ setOptions()

void Vyroda::Mesh::setOptions ( std::uint32_t options)
inline
Here is the caller graph for this function:

◆ setRoot()

void Vyroda::Mesh::setRoot ( )
inline

◆ setShaderName()

void Vyroda::Mesh::setShaderName ( std::string_view name)
inline
Here is the caller graph for this function:

◆ setShadowMapDescSet()

void Vyroda::Mesh::setShadowMapDescSet ( VkDescriptorSet descset)
inline

Member Data Documentation

◆ stage_flag_bits

VkShaderStageFlags Vyroda::Mesh::stage_flag_bits { VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT}

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