Switch from allegro backend to SDL backend for android build.
[fltk_mvc_template.git] / _template / packages / sdl2.0.8 / MainActivity.java
1 // Java JNI wrapper to load sdl
2 // and execute program
3 package com.giri._template;
4 import org.libsdl.app.SDLActivity;
5 public class MainActivity extends SDLActivity {
6    // execute _template
7    public MainActivity() {
8       super();
9    }
10
11   // libraries to load
12   @Override
13    protected String[] getLibraries() {
14         return new String[] {
15             "SDL2",
16             // "SDL2_image",
17             // "SDL2_mixer",
18             // "SDL2_net",
19             // "SDL2_ttf",
20             "_template"
21         };
22     }
23
24   // C++ program entrypoint
25   @Override
26   protected String getMainFunction() {
27         return "main";
28     }
29 }