double-hit-balls/game/android_api.h

34 lines
741 B
C
Raw Permalink Normal View History

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>
#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"
{
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);
};
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