MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
JNI_layer.cpp File Reference
Include dependency graph for JNI_layer.cpp:

Functions

static void handleException (JNIEnv *const env, const ::std::exception &exception, const char *const exceptionName)
 
::std::int32_t JNI_OnLoad (JavaVM *const jvm, void *)
 
void JNI_OnUnload (JavaVM *const, void *)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitCameraArray (JNIEnv *env, jobject)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitVerticesArray (JNIEnv *env, jobject)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtInitColorsArray (JNIEnv *env, jobject)
 
static void updateFps ()
 
void Java_puscas_mobilertapp_DrawView_rtStartRender (JNIEnv *env, jobject, jboolean wait)
 
void Java_puscas_mobilertapp_DrawView_rtStopRender (JNIEnv *env, jobject, jboolean wait)
 
jint Java_puscas_mobilertapp_MainRenderer_rtInitialize (JNIEnv *env, jobject, jobject localConfig)
 
void Java_puscas_mobilertapp_MainRenderer_rtFinishRender (JNIEnv *env, jobject)
 
void Java_puscas_mobilertapp_MainRenderer_rtRenderIntoBitmap (JNIEnv *env, jobject, jobject localBitmap, jint nThreads)
 
::std::int32_t Java_puscas_mobilertapp_RenderTask_rtGetState (JNIEnv *env, jobject)
 
float Java_puscas_mobilertapp_RenderTask_rtGetFps (JNIEnv *env, jobject)
 
jlong Java_puscas_mobilertapp_RenderTask_rtGetTimeRenderer (JNIEnv *env, jobject)
 
::std::int32_t Java_puscas_mobilertapp_RenderTask_rtGetSample (JNIEnv *env, jobject)
 
::std::int32_t Java_puscas_mobilertapp_MainActivity_rtResize (JNIEnv *env, jobject, jint size)
 
void Java_puscas_mobilertapp_MainActivity_resetErrno (JNIEnv *env, jclass)
 
JNIEXPORT void JNICALL Java_puscas_mobilertapp_MainActivity_readFile (JNIEnv *env, jobject, jint fileDescriptor, jlong fileSize, jstring jFilePath)
 
::std::int32_t Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights (JNIEnv *env, jobject)
 
jobject Java_puscas_mobilertapp_MainRenderer_rtFreeNativeBuffer (JNIEnv *env, jobject, jobject bufferRef)
 

Variables

static float fps_ {}
 
static ::std::atomic<::Statestate_ {State::IDLE}
 
static ::std::unique_ptr<::MobileRT::Rendererrenderer_ {}
 
static ::std::unique_ptr<::JavaVM > javaVM_ {}
 
static ::std::unique_ptr<::std::thread > thread_ {}
 
::std::mutex mutex_ {}
 
::std::int32_t numLights_ {}
 
::std::int64_t timeRenderer_ {}
 
::std::condition_variable rendered_ {}
 
static ::std::atomic< bool > finishedRendering_ {true}
 
::std::string objDefinition_ {}
 
::std::string mtlDefinition_ {}
 
::std::string camDefinition_ {}
 
static ::std::unordered_map<::std::string, ::MobileRT::TexturetexturesCache_ {}
 

Function Documentation

◆ handleException()

static void handleException ( JNIEnv *const  env,
const ::std::exception &  exception,
const char *const  exceptionName 
)
static

Helper method that throws a Java exception.

Parameters
envThe JNI environment.
exceptionThe exception which contains the message to add.
exceptionNameThe name of the exception class to throw.
Here is the caller graph for this function:

◆ Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights()

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

◆ Java_puscas_mobilertapp_DrawView_rtStartRender()

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

◆ Java_puscas_mobilertapp_DrawView_rtStopRender()

void Java_puscas_mobilertapp_DrawView_rtStopRender ( JNIEnv *  env,
jobject  ,
Generated by doxygen 1.8.13