Lumiverse  2.5
A framework for creating lighting control applications
Dumiverse.h
Go to the documentation of this file.
1 
4 #ifndef _ArnoldDUMIVERSE_H
5 #pragma once
6 
7 #include <algorithm>
8 #include <cstdio>
9 #include <thread>
10 #include <iostream>
11 #include <locale>
12 
13 
20 void init(const char *jsonPatchStr, const char *filename);
21 
33 int renderWrapper(const char *jsonDevicesStr, const char *jsonSettingsStr);
34 
38 void render();
39 
45 void close();
46 
50 float *getFrameBuffer();
51 
55 void interrupt();
56 
60 int getWidth();
61 
65 int getHeight();
66 
71 float getPercentage();
72 
73 #endif
void render()
Render a frame and pass it back to node.
Definition: Dumiverse.cpp:43
void interrupt()
Interrupt the current Arnold renderer.
Definition: Dumiverse.cpp:114
void close()
Close the connection to node.
Definition: Dumiverse.cpp:37
float * getFrameBuffer()
Get the frame buffer that was rendered by Arnold.
Definition: Dumiverse.cpp:13
void init(const char *jsonPatchStr, const char *filename)
Initializes data structures.
Definition: Dumiverse.cpp:29
int getWidth()
Get the width of the loaded image.
Definition: Dumiverse.cpp:17
float getPercentage()
Gets the progress of current frame as a percentage.
Definition: Dumiverse.cpp:25
int getHeight()
Get the height of the loaded image.
Definition: Dumiverse.cpp:21
int renderWrapper(const char *jsonDevicesStr, const char *jsonSettingsStr)
Fire off an arnold render.
Definition: Dumiverse.cpp:61