add missing formatter for ccColor4F

This commit is contained in:
dankmeme01 2025-02-20 23:52:49 +01:00 committed by GitHub
parent cdb78f6c48
commit fb7b3829dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,6 +92,10 @@ std::string cocos2d::format_as(cocos2d::ccColor4B const& col) {
return fmt::format("rgba({}, {}, {}, {})", col.r, col.g, col.b, col.a);
}
std::string cocos2d::format_as(cocos2d::ccColor4F const& col) {
return fmt::format("rgba({}, {}, {}, {})", col.r, col.g, col.b, col.a);
}
// Log
inline static thread_local int32_t s_nestLevel = 0;