mirror of https://github.com/AxioDL/metaforce.git
synchronize macOS with latest changes
This commit is contained in:
parent
f2dda765af
commit
92ed463051
|
@ -231,6 +231,8 @@ add_subdirectory(mpcksum)
|
||||||
add_subdirectory(gbalink)
|
add_subdirectory(gbalink)
|
||||||
add_subdirectory(visigen)
|
add_subdirectory(visigen)
|
||||||
|
|
||||||
|
add_dependencies(hecl visigen)
|
||||||
|
|
||||||
find_package(Qt5Widgets)
|
find_package(Qt5Widgets)
|
||||||
if (Qt5Widgets_FOUND)
|
if (Qt5Widgets_FOUND)
|
||||||
message(STATUS "Qt5 found, hecl-gui will be built")
|
message(STATUS "Qt5 found, hecl-gui will be built")
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace urde
|
||||||
{
|
{
|
||||||
|
|
||||||
CPOINode::CPOINode(std::string_view name, EPOIType type, const CCharAnimTime& time,
|
CPOINode::CPOINode(std::string_view name, EPOIType type, const CCharAnimTime& time,
|
||||||
u32 index, bool c, float weight, s32 e, s32 f)
|
s32 index, bool c, float weight, s32 e, s32 f)
|
||||||
: x4_(1),
|
: x4_(1),
|
||||||
x8_name(name),
|
x8_name(name),
|
||||||
x18_type(type),
|
x18_type(type),
|
||||||
|
@ -26,7 +26,7 @@ CPOINode::CPOINode(CInputStream& in)
|
||||||
x8_name(in.readString()),
|
x8_name(in.readString()),
|
||||||
x18_type(EPOIType(in.readUint16Big())),
|
x18_type(EPOIType(in.readUint16Big())),
|
||||||
x1c_time(in),
|
x1c_time(in),
|
||||||
x24_index(in.readUint32Big()),
|
x24_index(in.readInt32Big()),
|
||||||
x28_(in.readBool()),
|
x28_(in.readBool()),
|
||||||
x2c_weight(in.readFloatBig()),
|
x2c_weight(in.readFloatBig()),
|
||||||
x30_charIdx(in.readInt32Big()),
|
x30_charIdx(in.readInt32Big()),
|
||||||
|
|
|
@ -27,14 +27,14 @@ protected:
|
||||||
std::string x8_name;
|
std::string x8_name;
|
||||||
EPOIType x18_type;
|
EPOIType x18_type;
|
||||||
CCharAnimTime x1c_time;
|
CCharAnimTime x1c_time;
|
||||||
u32 x24_index;
|
s32 x24_index;
|
||||||
bool x28_;
|
bool x28_;
|
||||||
float x2c_weight;
|
float x2c_weight;
|
||||||
s32 x30_charIdx = -1;
|
s32 x30_charIdx = -1;
|
||||||
s32 x34_flags;
|
s32 x34_flags;
|
||||||
public:
|
public:
|
||||||
CPOINode(std::string_view name, EPOIType type, const CCharAnimTime& time,
|
CPOINode(std::string_view name, EPOIType type, const CCharAnimTime& time,
|
||||||
u32 index, bool, float weight, s32 charIdx, s32 flags);
|
s32 index, bool, float weight, s32 charIdx, s32 flags);
|
||||||
CPOINode(CInputStream& in);
|
CPOINode(CInputStream& in);
|
||||||
virtual ~CPOINode() = default;
|
virtual ~CPOINode() = default;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public:
|
||||||
const CCharAnimTime& GetTime() const { return x1c_time; }
|
const CCharAnimTime& GetTime() const { return x1c_time; }
|
||||||
void SetTime(const CCharAnimTime& time) { x1c_time = time; }
|
void SetTime(const CCharAnimTime& time) { x1c_time = time; }
|
||||||
EPOIType GetPoiType() const { return x18_type; }
|
EPOIType GetPoiType() const { return x18_type; }
|
||||||
u32 GetIndex() const { return x24_index; }
|
s32 GetIndex() const { return x24_index; }
|
||||||
float GetWeight() const { return x2c_weight; }
|
float GetWeight() const { return x2c_weight; }
|
||||||
s32 GetCharacterIndex() const { return x30_charIdx; }
|
s32 GetCharacterIndex() const { return x30_charIdx; }
|
||||||
s32 GetFlags() const { return x34_flags; }
|
s32 GetFlags() const { return x34_flags; }
|
||||||
|
|
|
@ -75,7 +75,7 @@ CMapSurfaceShader::Initialize(boo::MetalDataFactory::Context& ctx)
|
||||||
s_VtxFmt = ctx.newVertexFormat(1, VtxVmt);
|
s_VtxFmt = ctx.newVertexFormat(1, VtxVmt);
|
||||||
s_Pipeline = ctx.newShaderPipeline(VS, FS, nullptr, nullptr, s_VtxFmt,
|
s_Pipeline = ctx.newShaderPipeline(VS, FS, nullptr, nullptr, s_VtxFmt,
|
||||||
boo::BlendFactor::SrcAlpha, boo::BlendFactor::InvSrcAlpha, boo::Primitive::TriStrips,
|
boo::BlendFactor::SrcAlpha, boo::BlendFactor::InvSrcAlpha, boo::Primitive::TriStrips,
|
||||||
boo::ZTest::None, false, true, false, boo::CullMode::Backface);
|
boo::ZTest::GEqual, false, true, false, boo::CullMode::Backface);
|
||||||
return new CMapSurfaceShaderMetalDataBindingFactory;
|
return new CMapSurfaceShaderMetalDataBindingFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
||||||
Subproject commit 060202ca9b9f8a352ec2cf27c0ba5896f53c0a39
|
Subproject commit 2255856884b53bbc126d5dfc70723f4be193613d
|
Loading…
Reference in New Issue