mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
update assimp lib
This commit is contained in:
parent
03a348deb7
commit
d3f8fee74e
1725 changed files with 196314 additions and 62009 deletions
|
|
@ -558,13 +558,13 @@ class JavaIOSystem : public Assimp::IOSystem {
|
|||
lprintf("NULL object from AiIOSystem.open\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
size_t size = calli(mJniEnv, jStream, "jassimp/AiIOStream", "getFileSize", "()I");
|
||||
lprintf("Model file size is %d\n", size);
|
||||
|
||||
|
||||
char* buffer = (char*)malloc(size);
|
||||
jobject javaBuffer = mJniEnv->NewDirectByteBuffer(buffer, size);
|
||||
|
||||
|
||||
jvalue readParams[1];
|
||||
readParams[0].l = javaBuffer;
|
||||
if(call(mJniEnv, jStream, "jassimp/AiIOStream", "read", "(Ljava/nio/ByteBuffer;)Z", readParams))
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ public enum AiPostProcessSteps {
|
|||
* <li>Specify the #SortByPType flag. This moves line and point
|
||||
* primitives to separate meshes.
|
||||
* <li>Set the <tt>AI_CONFIG_PP_SBP_REMOVE</tt> option to
|
||||
* <code>aiPrimitiveType_POINTS | aiPrimitiveType_LINES</code>
|
||||
* <code>aiPrimitiveType_POINT | aiPrimitiveType_LINE</code>
|
||||
* to cause SortByPType to reject point and line meshes from the
|
||||
* scene.
|
||||
* </ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue