disable color
This commit is contained in:
		
							parent
							
								
									09ff96ba53
								
							
						
					
					
						commit
						28dbebbaf3
					
				
							
								
								
									
										3
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								window.c
									
									
									
									
									
								
							@ -87,6 +87,7 @@ void init(void) {
 | 
			
		||||
  if(_use_lighting) {
 | 
			
		||||
    enableSurfaceOption(_sphere, SO_USE_LIGHTING);
 | 
			
		||||
  }
 | 
			
		||||
  disableSurfaceOption(_sphere, SO_USE_COLOR);
 | 
			
		||||
  atexit(sortie);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -108,7 +109,7 @@ void draw(void) {
 | 
			
		||||
  lookAt(mvMat, _xcam, _ycam, 10, 0, 0, 0, 0, 1, 0);
 | 
			
		||||
  /* la sphère est laissée au centre et tourne autour de son axe y */
 | 
			
		||||
  memcpy(nmv, mvMat, sizeof nmv); /* copie mvMat dans nmv */
 | 
			
		||||
  /*rotate(nmv, a, 0.0f, 1.0f, 0.0f);*/
 | 
			
		||||
  rotate(nmv, a, 0.0f, 1.0f, 0.0f);
 | 
			
		||||
  transform_n_raster(_sphere, nmv, projMat);
 | 
			
		||||
  /* déclarer qu'on a changé (en bas niveau) des pixels du screen  */
 | 
			
		||||
  gl4dpScreenHasChanged();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user