Пример #1
0
/* private native void _getWindowContents( Graphics winGraphics , int pixmapPointer ) ; */
KNIEXPORT KNI_RETURNTYPE_VOID
Java_javax_microedition_khronos_egl_EGL10Impl__1getWindowContents() {

    jint pixmap = KNI_GetParameterAsInt(2);

    KNI_StartHandles(1);
    KNI_DeclareHandle(graphicsHandle);
    KNI_GetParameterAsObject(1, graphicsHandle);

#ifdef DEBUG
    printf("JSR239_getWindowContents(0x%x) = 0x%x\n",
	   graphicsHandle, pixmap);
#endif
    JSR239_getWindowContents(graphicsHandle, (JSR239_Pixmap *)pixmap);

    KNI_EndHandles();
    KNI_ReturnVoid();
}
Пример #2
0
/* private native void _getWindowContents( Graphics winGraphics , int pixmapPointer ) ; */
KNIEXPORT KNI_RETURNTYPE_VOID
Java_javax_microedition_khronos_egl_EGL10Impl__1getWindowContents() {

    jint pixmap = KNI_GetParameterAsInt(1);
    jint srcWidth = KNI_GetParameterAsInt(3);
    jint srcHeight = KNI_GetParameterAsInt(4);
    jint deltaHeight = KNI_GetParameterAsInt(5);

    KNI_StartHandles(1);
    KNI_DeclareHandle(srcGraphicsHandle);
    KNI_GetParameterAsObject(2, srcGraphicsHandle);

#ifdef DEBUG
    printf("JSR239_getWindowContents(0x%x) = 0x%x\n", 
	   graphicsHandle, pixmap);
#endif
    JSR239_getWindowContents((JSR239_Pixmap *)pixmap, srcGraphicsHandle, 
                             srcWidth, srcHeight,
                             deltaHeight);

    KNI_EndHandles();
    KNI_ReturnVoid();
}