mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 09:47:43 +00:00
Refactor for blender 2.8 and new shader model
This commit is contained in:
18
DataSpec/DNACommon/GX.cpp
Normal file
18
DataSpec/DNACommon/GX.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "GX.hpp"
|
||||
|
||||
namespace GX {
|
||||
|
||||
template <>
|
||||
void Color::Enumerate<athena::io::DNA<athena::Big>::Read>(typename Read::StreamT& reader) {
|
||||
reader.readUBytesToBuf(&num, 4);
|
||||
}
|
||||
template <>
|
||||
void Color::Enumerate<athena::io::DNA<athena::Big>::Write>(typename Write::StreamT& writer) {
|
||||
writer.writeUBytes(reinterpret_cast<const atUint8*>(&num), 4);
|
||||
}
|
||||
template <>
|
||||
void Color::Enumerate<athena::io::DNA<athena::Big>::BinarySize>(typename BinarySize::StreamT& s) {
|
||||
s += 4;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user