Mali OpenGL ES SDK
2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
Main Page
Classes
Files
File List
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
JavaClass.h
1
/*
2
* This confidential and proprietary software may be used only as
3
* authorised by a licensing agreement from ARM Limited
4
* (C) COPYRIGHT 2012 ARM Limited
5
* ALL RIGHTS RESERVED
6
* The entire notice above must be reproduced on all authorised
7
* copies and copies may only be made to the extent permitted
8
* by a licensing agreement from ARM Limited.
9
*/
10
11
#ifndef JAVACLASS_H
12
#define JAVACLASS_H
13
14
#include <jni.h>
15
16
#include <cstdio>
17
#include <cstdlib>
18
19
// Java method signatures
20
#define JM(ret,params) "(" params ")" ret
21
// Java types
22
#define TJString "Ljava/lang/String;"
23
#define TJInt "I"
24
#define TJVoid "V"
25
#define TJIntArr "[I"
26
27
namespace
MaliSDK
28
{
32
class
JavaClass
33
{
34
private
:
35
char
* classPath;
36
jclass jClass;
37
JNIEnv* JNIEnvironment;
38
bool
intialized;
39
40
public
:
50
JavaClass
(JNIEnv* JNIEnvironment,
const
char
* classPath);
51
55
virtual
~JavaClass
();
56
63
bool
staticField
(
const
char
* fieldName,
char
** result);
64
71
bool
staticField
(
const
char
* fieldName,
int
* result);
72
80
bool
staticMethod
(
const
char
* methodName,
int
** returnValue,
const
char
* param01);
81
89
bool
staticMethod
(
const
char
* methodName,
const
char
* param01,
const
char
* param02);
90
};
91
}
92
#endif
/* JAVACLASS_H */
simple-framework
inc
JavaClass.h
(C) ARM Ltd. 2012