1
0

feature: vertex and triangle index storage

This commit is contained in:
2025-11-18 01:38:28 +02:00
parent 7ae430ff4a
commit d65653cb76
4 changed files with 282 additions and 12 deletions

16
src/repeat.hpp Normal file
View File

@@ -0,0 +1,16 @@
#ifndef __WAVEFRONT_REPEAT_HPP__
#define __WAVEFRONT_REPEAT_HPP__
#include<array>
#include<cstdint>
namespace wavefront {
template<typename ValueType, std::size_t Length>
std::array<ValueType, Length> repeat_value(ValueType value) {
std::array<ValueType, Length> result;
result.fill(value);
return result;
};
}
#endif // __WAVEFRONT_REPEAT_HPP__