2017-01-10 12:43:06 +00:00
|
|
|
#ifndef ANDROID_API_H_INCLUDED
|
|
|
|
#define ANDROID_API_H_INCLUDED
|
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
#include <android/log.h>
|
|
|
|
|
|
|
|
#include <GLES/gl.h>
|
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <GLES2/gl2ext.h>
|
|
|
|
|
2018-10-04 21:16:10 +00:00
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
|
2017-01-10 12:43:06 +00:00
|
|
|
#include "boost/shared_ptr.hpp"
|
|
|
|
|
|
|
|
#include "main_code.h"
|
|
|
|
|
|
|
|
#include "include/Engine.h"
|
|
|
|
|
|
|
|
using namespace SE;
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
2018-10-04 21:16:10 +00:00
|
|
|
JNIEXPORT void JNICALL Java_fishrungames_doublehitballs_JniWrapper_SetJavaVM(JNIEnv * env, jobject obj);
|
|
|
|
|
2017-01-10 12:43:06 +00:00
|
|
|
JNIEXPORT void JNICALL Java_fishrungames_doublehitballs_JniWrapper_Init(JNIEnv * env, jobject obj, jint width, jint height);
|
|
|
|
};
|
|
|
|
|
2018-10-04 21:16:10 +00:00
|
|
|
std::stringstream LoadFileFromAndroid(const std::string& fileName);
|
|
|
|
|
|
|
|
void SaveFileToAndroid(const std::string& fileName, const std::string& fileContent);
|
2017-01-10 12:43:06 +00:00
|
|
|
|
|
|
|
#endif
|