pxError pxWindow::init(int left, int top, int width, int height) { #ifndef MOBILE return initNative(NULL, left, top, width, height, WS_OVERLAPPEDWINDOW, 0); #else return initNative(NULL, left, top, width, height, WS_VISIBLE, 0); #endif }
extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void*) { JNIEnv* env = NULL; jint result = -1; if (vm->GetEnv((void**) &env, JNI_VERSION_1_6) != JNI_OK) { return result; } int keepLoadingDexposed = dexposedOnVmCreated(env, NULL); if(keepLoadingDexposed) initNative(env, NULL); return JNI_VERSION_1_6; }
bool initNative(JNIEnv *env, jobject &stream, cudaStream_t* &stream_native, bool fill) { stream_native = new cudaStream_t[1]; initNative(env, stream, stream_native[0], fill); return true; }
bool initNative(JNIEnv *env, jobject &handle, cusolverDnHandle_t* &handle_native, bool fill) { handle_native = new cusolverDnHandle_t[1]; initNative(env, handle, handle_native[0], fill); return true; }