mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Reformat test/image_loader_test.cpp manually
This commit is contained in:
parent
b01a3ea781
commit
7cf801244c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user