2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Huge compile performance refactor

This commit is contained in:
Jack Andersen
2017-12-28 22:08:12 -10:00
parent 3f2c480891
commit 8301adc3d6
418 changed files with 1645 additions and 2402 deletions

View File

@@ -1,22 +1,20 @@
#include <stdint.h>
#include "hecl/Blender/BlenderConnection.hpp"
#include <cstdint>
#include "hecl/Blender/Connection.hpp"
#include "BlenderSupport.hpp"
extern "C" uint8_t RETRO_MASTER_SHADER[];
extern "C" size_t RETRO_MASTER_SHADER_SZ;
namespace DataSpec
{
namespace Blender
namespace DataSpec::Blender
{
bool BuildMasterShader(const hecl::ProjectPath& path)
{
hecl::BlenderConnection& conn = hecl::BlenderConnection::SharedConnection();
if (!conn.createBlend(path, hecl::BlenderConnection::BlendType::None))
hecl::blender::Connection& conn = hecl::blender::Connection::SharedConnection();
if (!conn.createBlend(path, hecl::blender::BlendType::None))
return false;
{
hecl::BlenderConnection::PyOutStream os = conn.beginPythonOut(true);
hecl::blender::PyOutStream os = conn.beginPythonOut(true);
os << RETRO_MASTER_SHADER;
os << "make_master_shader_library()\n";
}
@@ -24,4 +22,3 @@ bool BuildMasterShader(const hecl::ProjectPath& path)
}
}
}

View File

@@ -3,14 +3,11 @@
#include <hecl/hecl.hpp>
namespace DataSpec
{
namespace Blender
namespace DataSpec::Blender
{
bool BuildMasterShader(const hecl::ProjectPath& path);
}
}
#endif // _RETRO_BLENDER_SUPPORT_HPP_