2003-10-01 05:02:52 -04:00
|
|
|
#ifndef TOOLS_H
|
|
|
|
#define TOOLS_H
|
|
|
|
|
|
|
|
#include <JavaVM/jni.h>
|
2003-10-07 08:12:08 -04:00
|
|
|
#include <Carbon/Carbon.h>
|
2003-10-01 05:02:52 -04:00
|
|
|
|
2003-10-07 06:04:38 -04:00
|
|
|
#define lock() {lockLWJGL();
|
|
|
|
#define unlock() unlockLWJGL();}
|
|
|
|
|
2003-10-01 05:33:22 -04:00
|
|
|
extern void throwException(JNIEnv* env, const char* msg);
|
2003-10-07 08:12:08 -04:00
|
|
|
extern bool registerHandler(JNIEnv* env, WindowRef win_ref, EventHandlerProcPtr func, UInt32 event_kind);
|
2003-10-06 10:00:44 -04:00
|
|
|
extern bool initLock(JNIEnv* env);
|
|
|
|
extern void destroyLock(void);
|
2003-10-07 06:04:38 -04:00
|
|
|
extern void lockLWJGL(void);
|
|
|
|
extern void unlockLWJGL(void);
|
2003-10-01 05:02:52 -04:00
|
|
|
|
|
|
|
#endif
|