mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-16 20:10:28 +00:00
git subrepo pull --force tools/ZAPD (#727)
subrepo: subdir: "tools/ZAPD" merged: "4751db5c9" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "4751db5c9" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
This commit is contained in:
parent
77ec4d4916
commit
493bdbc3c6
115 changed files with 16370 additions and 2789 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "ZVtx.h"
|
||||
#include "ZFile.h"
|
||||
#include "StringHelper.h"
|
||||
#include "BitConverter.h"
|
||||
#include "StringHelper.h"
|
||||
#include "ZFile.h"
|
||||
|
||||
ZVtx::ZVtx()
|
||||
{
|
||||
|
@ -28,12 +28,14 @@ std::string ZVtx::GetSourceTypeName()
|
|||
|
||||
std::string ZVtx::GetSourceOutputCode(const std::string& prefix)
|
||||
{
|
||||
std::string output = StringHelper::Sprintf("VTX(%i, %i, %i, %i, %i, %i, %i, %i, %i)", x, y, z, s, t, r, g, b, a);
|
||||
std::string output =
|
||||
StringHelper::Sprintf("VTX(%i, %i, %i, %i, %i, %i, %i, %i, %i)", x, y, z, s, t, r, g, b, a);
|
||||
|
||||
if (parent != nullptr)
|
||||
parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align16, GetRawDataSize(), GetSourceTypeName(), name, output);
|
||||
parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align16, GetRawDataSize(),
|
||||
GetSourceTypeName(), name, output);
|
||||
|
||||
return "";
|
||||
return "";
|
||||
}
|
||||
|
||||
void ZVtx::ParseRawData()
|
||||
|
@ -54,25 +56,26 @@ void ZVtx::ParseRawData()
|
|||
|
||||
int ZVtx::GetRawDataSize()
|
||||
{
|
||||
return 16;
|
||||
return 16;
|
||||
}
|
||||
|
||||
bool ZVtx::DoesSupportArray()
|
||||
{
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
ZResourceType ZVtx::GetResourceType()
|
||||
{
|
||||
return ZResourceType::Vertex;
|
||||
return ZResourceType::Vertex;
|
||||
}
|
||||
|
||||
ZVtx* ZVtx::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, const int rawDataIndex, const std::string& nRelPath)
|
||||
ZVtx* ZVtx::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData,
|
||||
const int rawDataIndex, const std::string& nRelPath)
|
||||
{
|
||||
ZVtx* vtx = new ZVtx();
|
||||
ZVtx* vtx = new ZVtx();
|
||||
vtx->rawData = nRawData;
|
||||
vtx->rawDataIndex = rawDataIndex;
|
||||
vtx->ParseRawData();
|
||||
vtx->ParseRawData();
|
||||
|
||||
return vtx;
|
||||
return vtx;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue