mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-20 03:36:37 +02:00
add color component as s6zer, will do more later
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <mm/s6zer/serialize.hpp>
|
||||
|
||||
#include <mm/components/color.hpp>
|
||||
|
||||
namespace MM::Components {
|
||||
|
||||
MM_DEFINE_SERIALIZE(Color,
|
||||
MM_S6ZER_BAIL(stream.serializeFloat(data.color.r))
|
||||
MM_S6ZER_BAIL(stream.serializeFloat(data.color.g))
|
||||
MM_S6ZER_BAIL(stream.serializeFloat(data.color.b))
|
||||
MM_S6ZER_BAIL(stream.serializeFloat(data.color.a))
|
||||
)
|
||||
|
||||
} // MM::Components
|
||||
|
Reference in New Issue
Block a user