DirectZ
Loading...
Searching...
No Matches
dz::ecs::ColorComponent Struct Reference

#include <ColorComponent.hpp>

Inheritance diagram for dz::ecs::ColorComponent:
dz::Provider< ColorComponent >

Classes

struct  ColorComponentReflectable
struct  ColorComponentReflectableGroup

Public Types

using ReflectableGroup = ColorComponentReflectableGroup

Static Public Member Functions

static std::shared_ptr< ReflectableGroupMakeGroup (BufferGroup *buffer_group)
Static Public Member Functions inherited from dz::Provider< ColorComponent >
static constexpr size_t GetPID ()
static constexpr bool GetIsComponent ()
static constexpr char GetComponentID ()
static constexpr bool GetIsDrawProvider ()
static constexpr bool GetIsCameraProvider ()
static constexpr bool GetIsSceneProvider ()
static float GetPriority ()
static const std::string & GetProviderName ()
static const std::string & GetStructName ()
static const std::string & GetGLSLStruct ()
static const std::unordered_map< ShaderModuleType, std::string > & GetGLSLMethods ()
static std::vector< std::tuple< float, std::string, ShaderModuleType > > & GetGLSLMain ()
static std::shared_ptr< ReflectableGroupTryMakeGroup (BufferGroup *buffer_group)

Public Attributes

color_vec< float, 4 > color

Static Public Attributes

static constexpr bool IsComponent = true
static constexpr size_t PID = 1000
static constexpr char ComponentID = 1
static float Priority = 2.5f
static std::string ProviderName = "Color"
static std::string StructName = "ColorComponent"
static std::string GLSLStruct
static std::vector< std::tuple< float, std::string, ShaderModuleType > > GLSLMain

Member Typedef Documentation

◆ ReflectableGroup

Member Function Documentation

◆ MakeGroup()

std::shared_ptr< ReflectableGroup > dz::ecs::ColorComponent::MakeGroup ( BufferGroup * buffer_group)
inlinestatic

Member Data Documentation

◆ color

color_vec<float, 4> dz::ecs::ColorComponent::color

◆ ComponentID

char dz::ecs::ColorComponent::ComponentID = 1
inlinestaticconstexpr

◆ GLSLMain

std::vector<std::tuple<float, std::string, ShaderModuleType> > dz::ecs::ColorComponent::GLSLMain
inlinestatic
Initial value:
= {
{1.5f, " final_color = colorcomponent;\n", ShaderModuleType::Vertex}
}
@ Vertex
Definition Shader.hpp:16

◆ GLSLStruct

std::string dz::ecs::ColorComponent::GLSLStruct
inlinestatic
Initial value:
= R"(
#define ColorComponent vec4
)"

◆ IsComponent

bool dz::ecs::ColorComponent::IsComponent = true
inlinestaticconstexpr

◆ PID

size_t dz::ecs::ColorComponent::PID = 1000
inlinestaticconstexpr

◆ Priority

float dz::ecs::ColorComponent::Priority = 2.5f
inlinestatic

◆ ProviderName

std::string dz::ecs::ColorComponent::ProviderName = "Color"
inlinestatic

◆ StructName

std::string dz::ecs::ColorComponent::StructName = "ColorComponent"
inlinestatic

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