summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/gl/helmholtz.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiz/naloga/gl/helmholtz.c')
-rw-r--r--fiz/naloga/gl/helmholtz.c5
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();