From f1e93826da797128adcf90396d450fa590631bfb Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Thu, 1 Feb 2018 02:14:33 +0100 Subject: integrated video export, exporting garbage --- src/render.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/render.c') 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 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, -- cgit v1.2.1