mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 22:20:01 +01:00
47 lines
802 B
C
47 lines
802 B
C
#pragma once
|
|
#ifndef ANDROID_PRIV_H
|
|
#define ANDROID_PRIV_H
|
|
|
|
#include <EGL/egl.h>
|
|
#include <android/log.h>
|
|
#include <jni.h>
|
|
|
|
extern struct jnimethods_s
|
|
{
|
|
jclass actcls;
|
|
JavaVM *vm;
|
|
JNIEnv *env;
|
|
jmethodID enableTextInput;
|
|
jmethodID vibrate;
|
|
jmethodID messageBox;
|
|
jmethodID notify;
|
|
jmethodID setTitle;
|
|
jmethodID setIcon;
|
|
jmethodID getAndroidId;
|
|
jmethodID saveID;
|
|
jmethodID loadID;
|
|
jmethodID showMouse;
|
|
jmethodID shellExecute;
|
|
jmethodID swapBuffers;
|
|
jmethodID toggleEGL;
|
|
jmethodID createGLContext;
|
|
jmethodID getGLAttribute;
|
|
jmethodID deleteGLContext;
|
|
jmethodID getSelectedPixelFormat;
|
|
jmethodID getSurface;
|
|
int width, height;
|
|
} jni;
|
|
|
|
|
|
extern struct jnimouse_s
|
|
{
|
|
float x, y;
|
|
} jnimouse;
|
|
|
|
//
|
|
// vid_android.c
|
|
//
|
|
void Android_UpdateSurface( qboolean active );
|
|
|
|
#endif // ANDROID_PRIV_H
|