/src/compiler/android/jni/ftkapp/ftk_jni.h

http://ftk.googlecode.com/ · C Header · 32 lines · 21 code · 11 blank · 0 comment · 0 complexity · af19dce290220b8eb7e3f695a1c74fe5 MD5 · raw file

  1. #ifndef FTK_JNI_H
  2. #define FTK_JNI_H
  3. #include "ftk_typedef.h"
  4. #include "ftk_bitmap.h"
  5. FTK_BEGIN_DECLS
  6. int main(int argc, char* argv[]);
  7. void Android_SetScreenResolution(int width, int height);
  8. void Android_Log(const char* fmt, ...);
  9. int Android_OpenAsset(const char* filename, size_t* size);
  10. FtkBitmap* Android_LoadImage(const char* filename);
  11. void Android_InitEGL(void);
  12. Ret Android_PreRender(void);
  13. void Android_Render(void);
  14. int* Android_GetBitmapPixels(void);
  15. void Android_ReleaseBitmapPixels(int* pixels);
  16. void Android_DrawBitmap(int offset, int stride, int x, int y, int width, int height);
  17. void Android_ShowKeyboard(void);
  18. void Android_HideKeyboard(void);
  19. void Android_ShowInputMethodChooser(void);
  20. FTK_END_DECLS
  21. #endif/*FTK_JNI_H*/