mirror of
https://github.com/zeldaret/oot.git
synced 2025-01-15 21:07:15 +00:00
588de66d06
subrepo: subdir: "tools/ZAPD" merged: "2e1174063" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "2e1174063" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
31 lines
No EOL
697 B
C++
31 lines
No EOL
697 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <stdint.h>
|
|
#include "ZResource.h"
|
|
#include "ZScalar.h"
|
|
#include "tinyxml2.h"
|
|
|
|
class ZVtx : public ZResource
|
|
{
|
|
public:
|
|
int16_t x, y, z;
|
|
uint16_t flag;
|
|
int16_t s, t;
|
|
uint8_t r, g, b, a;
|
|
|
|
ZVtx();
|
|
|
|
void ParseXML(tinyxml2::XMLElement* reader);
|
|
std::string GetSourceTypeName() override;
|
|
std::string GetSourceOutputCode(const std::string& prefix);
|
|
void ParseRawData() override;
|
|
int GetRawDataSize();
|
|
bool DoesSupportArray() override;
|
|
ZResourceType GetResourceType();
|
|
|
|
static ZVtx* ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData, const int rawDataIndex, const std::string& nRelPath);
|
|
|
|
protected:
|
|
}; |