move stb_image/stb_image_write.cpp into a cpp file instead of random files with the magic 'STB_IMAGE_WRITE_IMPLEMENTATION' define
move setup.py back to eglRenderer extension, use pkgutil.get_loader('eglRenderer').get_filename()
disable dlmopen by default, unless B3_USE_DLMOPEN is defined.
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
|
||||
#ifdef EGL_ADD_PYTHON_INIT
|
||||
#if defined(__APPLE__) && (!defined(B3_NO_PYTHON_FRAMEWORK))
|
||||
#include <Python/Python.h>
|
||||
#else
|
||||
#include <Python.h>
|
||||
#endif
|
||||
#endif //EGL_ADD_PYTHON_INIT
|
||||
|
||||
//eglRenderer plugin
|
||||
|
||||
//see Bullet/examples/pybullet/examples/eglRendererTest.py
|
||||
@@ -52,3 +60,15 @@ B3_SHARED_API struct UrdfRenderingInterface* getRenderInterface_eglRendererPlugi
|
||||
return &obj->m_renderer;
|
||||
}
|
||||
|
||||
|
||||
#ifdef EGL_ADD_PYTHON_INIT
|
||||
PyMODINIT_FUNC
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
PyInit_eglRenderer(void)
|
||||
#else
|
||||
initeglRenderer(void)
|
||||
#endif
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif //EGL_ADD_PYTHON_INIT
|
||||
|
||||
@@ -795,7 +795,7 @@ void EGLRendererVisualShapeConverter::convertVisualShapes(
|
||||
// register mesh to m_instancingRenderer too.
|
||||
|
||||
int shapeIndex = m_data->m_instancingRenderer->registerShape(&vertices[0].xyzw[0], vertices.size(), &indices[0], indices.size(),B3_GL_TRIANGLES, textureIndex);
|
||||
btVector3 scaling(1,1,1);
|
||||
double scaling[3]={1,1,1};
|
||||
visuals->m_graphicsInstanceId = m_data->m_instancingRenderer->registerGraphicsInstance(shapeIndex, &visualShape.m_localVisualFrame[0], &visualShape.m_localVisualFrame[3], &visualShape.m_rgbaColor[0],scaling);
|
||||
|
||||
m_data->m_instancingRenderer->writeTransforms();
|
||||
|
||||
@@ -6,7 +6,7 @@ project ("pybullet_eglRendererPlugin")
|
||||
initEGL()
|
||||
|
||||
includedirs {".","../../../../src", "../../../../examples",
|
||||
"../../../ThirdPartyLibs", "../../examples/ThirdPartyLibs/glad"}
|
||||
"../../../ThirdPartyLibs", "../../../ThirdPartyLibs/glad"}
|
||||
defines {"PHYSICS_IN_PROCESS_EXAMPLE_BROWSER", "STB_AGAIN"}
|
||||
hasCL = findOpenCL("clew")
|
||||
|
||||
@@ -25,7 +25,8 @@ project ("pybullet_eglRendererPlugin")
|
||||
end
|
||||
|
||||
if os.is("Linux") then
|
||||
files {"../../../ThirdPartyLibs/glad/glx.c",}
|
||||
files {"../../../OpenGLWindow/EGLOpenGLWindow.cpp"}
|
||||
|
||||
end
|
||||
|
||||
files {
|
||||
|
||||
Reference in New Issue
Block a user