Пример #1
0
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
}
Пример #2
0
    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;
    }
Пример #3
0
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;
}
Пример #4
0
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;
}