mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-30 14:13:27 +00:00
BlenderConnection::compileWorld() stub
This commit is contained in:
parent
68a0fb89da
commit
835976be56
2
hecl/extern/boo
vendored
2
hecl/extern/boo
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 10988fa37efa49b77d3f361b91faf1ab7d87ced5
|
Subproject commit 51a097da6bf0c2b3f101aa922e2597eaed239c54
|
@ -581,6 +581,12 @@ public:
|
|||||||
ColMesh(BlenderConnection& conn);
|
ColMesh(BlenderConnection& conn);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Intermediate world representation */
|
||||||
|
struct World
|
||||||
|
{
|
||||||
|
World(BlenderConnection& conn);
|
||||||
|
};
|
||||||
|
|
||||||
/** Intermediate lamp representation */
|
/** Intermediate lamp representation */
|
||||||
struct Light
|
struct Light
|
||||||
{
|
{
|
||||||
@ -630,6 +636,9 @@ public:
|
|||||||
Mesh compileAllMeshes(HMDLTopology topology, int skinSlotCount=10, float maxOctantLength=5.0,
|
Mesh compileAllMeshes(HMDLTopology topology, int skinSlotCount=10, float maxOctantLength=5.0,
|
||||||
Mesh::SurfProgFunc surfProg=[](int){});
|
Mesh::SurfProgFunc surfProg=[](int){});
|
||||||
|
|
||||||
|
/** Compile world intermediate (WORLD blends only) */
|
||||||
|
World compileWorld();
|
||||||
|
|
||||||
/** Gather all lights in scene (AREA blends only) */
|
/** Gather all lights in scene (AREA blends only) */
|
||||||
std::vector<Light> compileLights();
|
std::vector<Light> compileLights();
|
||||||
|
|
||||||
|
@ -1001,6 +1001,10 @@ BlenderConnection::DataStream::ColMesh::Triangle::Triangle(BlenderConnection& co
|
|||||||
conn._readBuf(this, 16);
|
conn._readBuf(this, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlenderConnection::DataStream::World::World(BlenderConnection& conn)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
BlenderConnection::DataStream::Light::Light(BlenderConnection& conn)
|
BlenderConnection::DataStream::Light::Light(BlenderConnection& conn)
|
||||||
: sceneXf(conn), color(conn)
|
: sceneXf(conn), color(conn)
|
||||||
{
|
{
|
||||||
@ -1306,6 +1310,23 @@ BlenderConnection::DataStream::Actor BlenderConnection::DataStream::compileActor
|
|||||||
return Actor(*m_parent);
|
return Actor(*m_parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlenderConnection::DataStream::World
|
||||||
|
BlenderConnection::DataStream::compileWorld()
|
||||||
|
{
|
||||||
|
if (m_parent->m_loadedType != BlendType::World)
|
||||||
|
BlenderLog.report(logvisor::Fatal, _S("%s is not an WORLD blend"),
|
||||||
|
m_parent->m_loadedBlend.getAbsolutePath().c_str());
|
||||||
|
|
||||||
|
m_parent->_writeLine("WORLDCOMPILE");
|
||||||
|
|
||||||
|
char readBuf[256];
|
||||||
|
m_parent->_readLine(readBuf, 256);
|
||||||
|
if (strcmp(readBuf, "OK"))
|
||||||
|
BlenderLog.report(logvisor::Fatal, "unable to compile world: %s", readBuf);
|
||||||
|
|
||||||
|
return World(*m_parent);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> BlenderConnection::DataStream::getArmatureNames()
|
std::vector<std::string> BlenderConnection::DataStream::getArmatureNames()
|
||||||
{
|
{
|
||||||
if (m_parent->m_loadedType != BlendType::Actor)
|
if (m_parent->m_loadedType != BlendType::Actor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user