cubemapper

diff src/main.cc @ 1:d7a29cb7ac8d

resize to the final cubemap face size
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 28 Jul 2017 07:44:35 +0300
parents 8fc9e1d3aad2
children e308561f9889
line diff
     1.1 --- a/src/main.cc	Thu Jul 27 20:36:12 2017 +0300
     1.2 +++ b/src/main.cc	Fri Jul 28 07:44:35 2017 +0300
     1.3 @@ -14,9 +14,9 @@
     1.4  
     1.5  int main(int argc, char **argv)
     1.6  {
     1.7 +	glutInitWindowSize(1024, 768);
     1.8  	glutInit(&argc, argv);
     1.9  	glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
    1.10 -	glutInitWindowSize(1024, 768);
    1.11  	glutCreateWindow("cubemapper");
    1.12  
    1.13  	glutDisplayFunc(display);
    1.14 @@ -49,6 +49,11 @@
    1.15  	glutSwapBuffers();
    1.16  }
    1.17  
    1.18 +void app_resize(int x, int y)
    1.19 +{
    1.20 +	glutReshapeWindow(x, y);
    1.21 +}
    1.22 +
    1.23  static void display()
    1.24  {
    1.25  	app_draw();