Files
triton/tests/android/test.cpp

17 lines
505 B
C++
Raw Normal View History

2015-05-02 08:59:45 -04:00
#include <android/log.h>
#include <android_native_app_glue.h>
#include <sstream>
#include "isaac/array.h"
void android_main(struct android_app* state)
{
app_dummy(); // Make sure glue isn't stripped
__android_log_print(ANDROID_LOG_INFO, "IsaacAndroidTest", "This is a test");
isaac::array test(5, isaac::FLOAT_TYPE);
2015-08-14 01:11:46 -07:00
std::ostringstream oss;
oss << test;
__android_log_print(ANDROID_LOG_INFO, "IsaacAndroidTest", oss.str().c_str());
2015-05-02 08:59:45 -04:00
ANativeActivity_finish(state->activity);
}