Files
MapLibreParticleLab/include/mbgl/android/jni.hpp
2015-08-04 13:52:08 +10:00

80 lines
1.9 KiB
C++

#ifndef MBGL_ANDROID_JNI
#define MBGL_ANDROID_JNI
#include <string>
// Forward definition of JNI types
typedef class _jclass* jclass;
typedef struct _jmethodID* jmethodID;
typedef struct _jfieldID* jfieldID;
namespace mbgl {
namespace android {
extern std::string cachePath;
extern std::string dataPath;
extern std::string apkPath;
extern std::string androidRelease;
extern jmethodID onInvalidateId;
extern jmethodID onMapChangedId;
extern jmethodID onFpsChangedId;
extern jclass latLngClass;
extern jmethodID latLngConstructorId;
extern jfieldID latLngLatitudeId;
extern jfieldID latLngLongitudeId;
extern jclass latLngZoomClass;
extern jmethodID latLngZoomConstructorId;
extern jfieldID latLngZoomLatitudeId;
extern jfieldID latLngZoomLongitudeId;
extern jfieldID latLngZoomZoomId;
extern jclass markerClass;
extern jmethodID markerConstructorId;
extern jfieldID markerPositionId;
extern jfieldID markerSpriteId;
extern jclass polylineClass;
extern jmethodID polylineConstructorId;
extern jfieldID polylineAlphaId;
extern jfieldID polylineVisibleId;
extern jfieldID polylineColorId;
extern jfieldID polylineWidthId;
extern jfieldID polylinePointsId;
extern jclass polygonClass;
extern jmethodID polygonConstructorId;
extern jfieldID polygonAlphaId;
extern jfieldID polygonVisibleId;
extern jfieldID polygonFillColorId;
extern jfieldID polygonStrokeColorId;
extern jfieldID polygonStrokeWidthId;
extern jfieldID polygonPointsId;
extern jfieldID polygonHolesId;
extern jclass runtimeExceptionClass;
extern jclass nullPointerExceptionClass;
extern jmethodID listToArrayId;
extern jclass arrayListClass;
extern jmethodID arrayListConstructorId;
extern jmethodID arrayListAddId;
extern jclass projectedMetersClass;
extern jmethodID projectedMetersConstructorId;
extern jfieldID projectedMetersNorthingId;
extern jfieldID projectedMetersEastingId;
extern jclass pointFClass;
extern jmethodID pointFConstructorId;
extern jfieldID pointFXId;
extern jfieldID pointFYId;
}
}
#endif