MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
JNI_layer.hpp File Reference
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <android/bitmap.h>
#include <android/log.h>
#include <jni.h>
#include <memory>
#include <thread>
Include dependency graph for JNI_layer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  State { State::IDLE = 0, State::BUSY = 1, State::FINISHED = 2, State::STOPPED = 3 }
 

Functions

jint JNI_OnLoad (JavaVM *jvm, void *reserved)
 
void JNI_OnUnload (JavaVM *vm, void *reserved)
 
void Java_puscas_mobilertapp_DrawView_rtStopRender (JNIEnv *env, jobject thiz, jboolean wait)
 
void Java_puscas_mobilertapp_DrawView_rtStartRender (JNIEnv *env, jobject thiz, jboolean wait)
 
jint Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights (JNIEnv *env, jobject thiz)
 
jint Java_puscas_mobilertapp_RenderTask_rtGetState (JNIEnv *env, jobject thiz)
 
jfloat Java_puscas_mobilertapp_RenderTask_rtGetFps (JNIEnv *env, jobject)
 
jlong Java_puscas_mobilertapp_RenderTask_rtGetTimeRenderer (JNIEnv *env, jobject thiz)
 
jint Java_puscas_mobilertapp_RenderTask_rtGetSample (JNIEnv *env, jobject thiz)
 
JNIEXPORT jint JNICALL Java_puscas_mobilertapp_MainActivity_rtResize (JNIEnv *env, jobject thiz, jint size)
 
JNIEXPORT void JNICALL Java_puscas_mobilertapp_MainActivity_resetErrno (JNIEnv *env, jclass)
 
JNIEXPORT void JNICALL Java_puscas_mobilertapp_MainActivity_readFile (JNIEnv *env, jobject thiz, jint fileDescriptor, jlong fileSize, jstring filePath)
 
void Java_puscas_mobilertapp_MainRenderer_rtFinishRender (JNIEnv *env, jobject thiz)
 
void Java_puscas_mobilertapp_MainRenderer_rtRenderIntoBitmap (JNIEnv *env, jobject thiz, jobject localBitmap, jint nThreads)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitVerticesArray (JNIEnv *env, jobject thiz)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitColorsArray (JNIEnv *env, jobject thiz)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitCameraArray (JNIEnv *env, jobject thiz)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtFreeNativeBuffer (JNIEnv *env, jobject thiz, jobject bufferRef)
 
jint Java_puscas_mobilertapp_MainRenderer_rtInitialize (JNIEnv *env, jobject thiz, jobject localConfig)
 

Enumeration Type Documentation

◆ State

enum State
strong
Enumerator
IDLE 
BUSY 
FINISHED 
STOPPED 

Function Documentation

◆ Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights()

jint Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_DrawView_rtStartRender()

void Java_puscas_mobilertapp_DrawView_rtStartRender ( JNIEnv *  env,
jobject  thiz,
jboolean  wait 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_DrawView_rtStopRender()

void Java_puscas_mobilertapp_DrawView_rtStopRender ( JNIEnv *  env,
jobject  thiz,
jboolean  wait 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainActivity_readFile()

JNIEXPORT void JNICALL Java_puscas_mobilertapp_MainActivity_readFile ( JNIEnv *  env,
jobject  thiz,
jint  fileDescriptor,
jlong  fileSize,
jstring  filePath 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainActivity_resetErrno()

JNIEXPORT void JNICALL Java_puscas_mobilertapp_MainActivity_resetErrno ( JNIEnv *  env,
jclass   
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainActivity_rtResize()

JNIEXPORT jint JNICALL Java_puscas_mobilertapp_MainActivity_rtResize ( JNIEnv *  env,
jobject  thiz,
jint  size 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtFinishRender()

void Java_puscas_mobilertapp_MainRenderer_rtFinishRender ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtFreeNativeBuffer()

jobject Java_puscas_mobilertapp_MainRenderer_rtFreeNativeBuffer ( JNIEnv *  env,
jobject  thiz,
jobject  bufferRef 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtInitCameraArray()

jobject Java_puscas_mobilertapp_MainRenderer_rtInitCameraArray ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtInitColorsArray()

jobject Java_puscas_mobilertapp_MainRenderer_rtInitColorsArray ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtInitialize()

jint Java_puscas_mobilertapp_MainRenderer_rtInitialize ( JNIEnv *  env,
jobject  thiz,
jobject  localConfig 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtInitVerticesArray()

jobject Java_puscas_mobilertapp_MainRenderer_rtInitVerticesArray ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_MainRenderer_rtRenderIntoBitmap()

void Java_puscas_mobilertapp_MainRenderer_rtRenderIntoBitmap ( JNIEnv *  env,
jobject  thiz,
jobject  localBitmap,
jint  nThreads 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_RenderTask_rtGetFps()

jfloat Java_puscas_mobilertapp_RenderTask_rtGetFps ( JNIEnv *  env,
jobject   
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_RenderTask_rtGetSample()

jint Java_puscas_mobilertapp_RenderTask_rtGetSample ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_RenderTask_rtGetState()

jint Java_puscas_mobilertapp_RenderTask_rtGetState ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ Java_puscas_mobilertapp_RenderTask_rtGetTimeRenderer()

jlong Java_puscas_mobilertapp_RenderTask_rtGetTimeRenderer ( JNIEnv *  env,
jobject  thiz 
)
Here is the call graph for this function:

◆ JNI_OnLoad()

jint JNI_OnLoad ( JavaVM *  jvm,
void *  reserved 
)
Here is the call graph for this function:

◆ JNI_OnUnload()

void JNI_OnUnload ( JavaVM *  vm,
void *  reserved 
)