ccdemos/textures.cc
branchpyrit
changeset 92 9af5c039b678
parent 91 9d66d323c354
child 93 96d65f841791
equal deleted inserted replaced
91:9d66d323c354 92:9af5c039b678
    15 	if (ly != 0.0)
    15 	if (ly != 0.0)
    16 		light.pos.y += ly;
    16 		light.pos.y += ly;
    17 	if (lz != 0.0)
    17 	if (lz != 0.0)
    18 		light.pos.z += lz;
    18 		light.pos.z += lz;
    19 	if (cf != 0.0)
    19 	if (cf != 0.0)
    20 		cam.F += cf;
    20 		cam.setF(cam.getF() + cf);
    21 }
    21 }
    22 
    22 
    23 void key_callback(int key, int down)
    23 void key_callback(int key, int down)
    24 {
    24 {
    25 	switch (key)
    25 	switch (key)
   146 		sampler.setSubsample(1);
   146 		sampler.setSubsample(1);
   147 		rt.setSampler(&sampler);
   147 		rt.setSampler(&sampler);
   148 		rt.render();
   148 		rt.render();
   149 		sampler.getPixmap().writePNG("textures.png");
   149 		sampler.getPixmap().writePNG("textures.png");
   150 	}
   150 	}
       
   151 	
       
   152 	return 0;
   151 }
   153 }