Since there's no Terrain support and the guy who were making it just disappeared I wanted to start doing it on my own. However I'm pretty new to SWIG and I would like to have some guidance. Here's what I have so far in the .i file:
Code: Select all
%module(package="Ogre") Terrain
%{
/* Includes the header in the wrapper code */
#include "Ogre.h"
%}
%include std_string.i
%include exception.i
%import "Ogre.i"
#define _OgreTerrainExport
%include "../src/OgreTerrainMaterialShaderHelpers.h"
Code: Select all
if (OGRE_BUILD_COMPONENT_TERRAIN)
add_subdirectory(Terrain)
endif ()