Reformat test/image_loader_test.cpp manually

This commit is contained in:
Desour 2024-03-20 19:38:29 +01:00 committed by sfan5
parent b01a3ea781
commit 7cf801244c

View File

@ -6,14 +6,16 @@
using namespace irr;
struct ImageDesc {
struct ImageDesc
{
const char *name;
video::ECOLOR_FORMAT format;
std::vector<u8> data;
};
template <typename T>
std::vector<u8> to_byte_array(std::initializer_list<T> in_data) {
std::vector<u8> to_byte_array(std::initializer_list<T> in_data)
{
std::vector<u8> data;
data.resize(sizeof(T) * in_data.size());
memcpy(data.data(), in_data.begin(), data.size());