Irrlicht 是四大开源 3D 引擎之一(其余三者为 Orge、Nebula 与 KlayGE)。 Changes in 1.8.4 (9th July 2016, svn r5321)
同作者,free easy-to-use 3D engine。CopperCube
几个有用的工具,用来抓取图形渲染帧,在分析其它项目以及排查渲染方面的 bug 时非常有用。
渲染帧抓取工具
# [irrlicht] 提交原始 Irrlicht 代码
git checkout ea8f3ada185a44c77087a6735bf9a4c77fe875f6
E:\kSource\pythonx>python codecompare.py allcode
3806
targetCount 4257 diffCount 0 missCount 0
a game demo on android using irrlicht,编译出来了,包含音乐等,还不错。
通过 swig 链接,实现了基本的 JNI,是一个完整的例子,但是没有跑起来。
$(shell swig -c++ -java -package $(PACKAGE_NAME) \
-outdir $(JAVA_DIR) \
-o $(NDK_DIR)/wrapper_wrap.cpp \
$(LOCAL_PATH)/wrapper.i \
)
#ifndef __IRRLICHT_NATIVE_H__
#define __IRRLICHT_NATIVE_H__
#include <string>
class NativeIrrlicht {
public:
NativeIrrlicht();
~NativeIrrlicht();
void onCreate();
void onPause();
void onResume();
void onDestroy();
void init();
void initGL(int w, int h);
void onResize(int w, int h);
void sendEvent(int action, float x, float y);
bool getStatus();
void setPath(std::string path);
void drawIteration();
};
没找到 AndroidManifest.xml。
非 JNI 模式。
更新,而且是 EDT_OGLES2。
https://github.com/wangtianhang/irrlicht https://github.com/Synxis/SPARK
这几个还需要 gitee 查找资料。
https://code.google.com/archive/p/wrapirrlicht-for-android/source https://www.codeproject.com/articles/333135/wrapping-irrlicht-for-android https://gitee.com/panqingyun/E3D-Engine