45 static const neolib::uuid sId = { 0x19dc8436, 0xfa0d, 0x437c, 0xa784, { 0xca, 0x6a, 0x7a, 0x35, 0x44, 0x8b } };
50 static const string sName =
"Mesh Renderer";
62 return component_data_field_type::ComponentData;
64 return component_data_field_type::ComponentData | component_data_field_type::Array;
66 return component_data_field_type::Int32;
68 return component_data_field_type::ComponentData | component_data_field_type::Optional;
70 return component_data_field_type::Bool;
95 static const string sFieldNames[] =
103 return sFieldNames[aFieldIndex];
110 auto lhsTexture = lhs.material.texture != std::nullopt ?
111 lhs.material.texture->id : lhs.material.sharedTexture != std::nullopt ?
112 lhs.material.sharedTexture->ptr->id : neolib::cookie_ref_ptr{};
116 return lhsTexture < rhsTexture;
bool batchable(const filter &lhs, const filter &rhs)
std::vector< patch > patches
component_data_field_type
basic_cookie_ref_ptr< cookie > cookie_ref_ptr
std::optional< texture > texture
std::optional< shared< texture > > sharedTexture
std::optional< game::filter > filter