diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-30 22:05:30 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-30 22:05:30 +0200 |
commit | be93772bd4ab8b9af5fa155565d732e5e7cff51e (patch) | |
tree | 506445114f1973f2caf44b37d80749197e37c4e4 /fiz/naloga/gl/helmholtz.c | |
parent | Merge branch 'master' of https://git.šijanec.si/sijanec/sola-gimb-3 (diff) | |
download | sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar.gz sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar.bz2 sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar.lz sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar.xz sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.tar.zst sola-gimb-3-be93772bd4ab8b9af5fa155565d732e5e7cff51e.zip |
Diffstat (limited to 'fiz/naloga/gl/helmholtz.c')
-rw-r--r-- | fiz/naloga/gl/helmholtz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fiz/naloga/gl/helmholtz.c b/fiz/naloga/gl/helmholtz.c index 5f8f44d..5858039 100644 --- a/fiz/naloga/gl/helmholtz.c +++ b/fiz/naloga/gl/helmholtz.c @@ -29,7 +29,7 @@ int main (void) { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 1); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 4); // glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // forward compat is ogl 3.0+ - GLFWwindow * okno = glfwCreateWindow(800, 600, "okno", NULL, NULL); + GLFWwindow * okno = glfwCreateWindow(80, 60, "okno", NULL, NULL); if (!okno) { fprintf(stderr, "glfwCreateWindow failed\n"); glfwTerminate(); @@ -123,6 +123,7 @@ int main (void) { glfwSwapBuffers(okno); glfwPollEvents(); // wait / poll frame++; + /* char fn[25]; sprintf(fn, "animacija%04d.ppm", frame); int fd; @@ -148,7 +149,7 @@ int main (void) { if (close(fd) == -1) { perror("close"); abort(); - } + } */ } glfwDestroyWindow(okno); glfwTerminate(); |