Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::BillboardComponent< Mode > Struct Template Reference

#include <BillboardComponent.hpp>

Public Types

enum class  Orientation { CameraFacing , AxisAligned , WorldFixed }
 
enum class  Scale { World , Camera }
 
enum class  Occlusion { Occludable , NotOccludable }
 

Public Member Functions

glm::mat4 getModelMatrix (const glm::mat4 &baseMatrix, const glm::vec3 &cameraPosition, const glm::mat4 &viewMatrix) const
 

Public Attributes

Orientation orientation {Orientation::CameraFacing}
 
Scale scale {Scale::Camera}
 
Occlusion occlusion {Occlusion::NotOccludable}
 
HandleAndAsset< Materialmaterial {}
 

Member Enumeration Documentation

◆ Occlusion

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
enum class shkyera::BillboardComponent::Occlusion
strong
Enumerator
Occludable 
NotOccludable 

◆ Orientation

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
enum class shkyera::BillboardComponent::Orientation
strong
Enumerator
CameraFacing 
AxisAligned 
WorldFixed 

◆ Scale

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
enum class shkyera::BillboardComponent::Scale
strong
Enumerator
World 
Camera 

Member Function Documentation

◆ getModelMatrix()

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
glm::mat4 shkyera::BillboardComponent< Mode >::getModelMatrix ( const glm::mat4 &  baseMatrix,
const glm::vec3 &  cameraPosition,
const glm::mat4 &  viewMatrix 
) const
inline

Member Data Documentation

◆ material

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
HandleAndAsset<Material> shkyera::BillboardComponent< Mode >::material {}

◆ occlusion

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
Occlusion shkyera::BillboardComponent< Mode >::occlusion {Occlusion::NotOccludable}

◆ orientation

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
Orientation shkyera::BillboardComponent< Mode >::orientation {Orientation::CameraFacing}

◆ scale

template<RuntimeMode Mode = RuntimeMode::PRODUCTION>
Scale shkyera::BillboardComponent< Mode >::scale {Scale::Camera}

The documentation for this struct was generated from the following file: