MobileRT
1.0
A multi platform C++ CPU progressive Ray Tracer.
|
#include "JNI_layer.hpp"
#include "Components/Cameras/Orthographic.hpp"
#include "Components/Cameras/Perspective.hpp"
#include "Components/Lights/AreaLight.hpp"
#include "Components/Lights/PointLight.hpp"
#include "Components/Loaders/CameraFactory.hpp"
#include "Components/Loaders/OBJLoader.hpp"
#include "Components/Loaders/PerspectiveLoader.hpp"
#include "Components/Samplers/Constant.hpp"
#include "Components/Samplers/HaltonSeq.hpp"
#include "Components/Samplers/MersenneTwister.hpp"
#include "Components/Samplers/PCG.hpp"
#include "Components/Samplers/StaticHaltonSeq.hpp"
#include "Components/Samplers/StaticMersenneTwister.hpp"
#include "Components/Samplers/StaticPCG.hpp"
#include "Components/Samplers/Stratified.hpp"
#include "Components/Shaders/DepthMap.hpp"
#include "Components/Shaders/DiffuseMaterial.hpp"
#include "Components/Shaders/NoShadows.hpp"
#include "Components/Shaders/PathTracer.hpp"
#include "Components/Shaders/Whitted.hpp"
#include "MobileRT/Renderer.hpp"
#include "MobileRT/Scene.hpp"
#include "Scenes/Scenes.hpp"
#include <android/bitmap.h>
#include <condition_variable>
#include <fstream>
#include <istream>
#include <glm/glm.hpp>
#include <mutex>
#include <string>
#include <unistd.h>
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<::State > | state_ {State::IDLE} |
static ::std::unique_ptr<::MobileRT::Renderer > | renderer_ {} |
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::Texture > | texturesCache_ {} |
|
static |
Helper method that throws a Java exception.
env | The JNI environment. |
exception | The exception which contains the message to add. |
exceptionName | The name of the exception class to throw. |
::std::int32_t Java_puscas_mobilertapp_DrawView_rtGetNumberOfLights | ( | JNIEnv * | env, |
jobject | |||
) |
void Java_puscas_mobilertapp_DrawView_rtStartRender | ( | JNIEnv * | env, |
jobject | , | ||
jboolean | wait | ||
) |