diff options
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 11 |
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, |