feature: vertex and triangle index storage
This commit is contained in:
16
src/repeat.hpp
Normal file
16
src/repeat.hpp
Normal 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__
|
||||
Reference in New Issue
Block a user