aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-02-01 02:14:33 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-02-01 02:14:33 +0100
commitf1e93826da797128adcf90396d450fa590631bfb (patch)
treeb50a8fa9b929a917934140eadd1f52947cdab133 /src/render.c
parent18e5b2554b4cd73207e936e76e32c9d376cd1ba8 (diff)
integrated video export, exporting garbageHEADmaster
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/render.c b/src/render.c
index 30f1b7a..ef61005 100644
--- a/src/render.c
+++ b/src/render.c
@@ -6,8 +6,6 @@
*/
#include "render.h"
-//#define HAVE_STRUCT_TIMESPEC
-#include <pthread.h>
void init_render(config_t *config)
{
@@ -72,6 +70,8 @@ void init_render(config_t *config)
glutDisplayFunc(render);
+ generateVideo(_config->path, _config->width, config->height, _config->videoFPS, _config->bitrate);
+
t_old = glutGet(GLUT_ELAPSED_TIME);
glutMainLoop();
@@ -90,11 +90,6 @@ d64 zoom_func(d64 ft, d64 s)
void idle_dummy(void)
{
- double xmin = (double) x_min;
- double ymin = (double) y_min;
- double xmax = (double) x_max;
- double ymax = (double) y_max;
- printf("x_min: %lf, y_min: %lf, x_max: %lf, y_max: %lf\n", xmin, ymin, xmax, ymax);
glutPostRedisplay();
}
@@ -138,6 +133,8 @@ void render(void)
{
_render(x_min, y_min, x_max, y_max);
+ addFrame(_config->arr);
+
glBindTexture(GL_TEXTURE_2D, _config->tex);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, _config->width,
_config->height, 0, GL_RGBA, GL_UNSIGNED_BYTE,