catch up
This commit is contained in:
		
							parent
							
								
									33401ffca5
								
							
						
					
					
						commit
						790c02aa68
					
				| @ -9,6 +9,9 @@ | ||||
| #import "ViewController.h" | ||||
| #import "ios_api.h" | ||||
| 
 | ||||
| 
 | ||||
| extern GLKView* defaultView; | ||||
| 
 | ||||
| @interface ViewController () { | ||||
| } | ||||
| 
 | ||||
| @ -39,6 +42,7 @@ | ||||
|     view.context = self.context; | ||||
|     view.drawableDepthFormat = GLKViewDrawableDepthFormat24; | ||||
|      | ||||
|     defaultView = view; | ||||
|      | ||||
|     [self setupGL]; | ||||
| } | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -46,9 +46,11 @@ void TMyApplication::InnerInit() | ||||
| 	 | ||||
|     ResourceManager->SoundManager.LoadSound("shot.wav"); | ||||
| 	 | ||||
| 	Renderer->MovePhi(pi/6); | ||||
| 	Renderer->MoveDist(6.f); | ||||
|     boost::get<TPanoramicCamera>(Renderer->Camera).MovePhi(pi/6); | ||||
| 	boost::get<TPanoramicCamera>(Renderer->Camera).MoveDist(6.f); | ||||
| 	 | ||||
|     boost::get<TPanoramicCamera>(Renderer->Camera).CalcCamVec(); | ||||
|      | ||||
| 	ResourceManager->LightManager.SetLightDirection(vec3(-1,0,-1)); | ||||
| 	ResourceManager->LightManager.SetLightColor(vec4(1,0,0,1)); | ||||
| 
 | ||||
| @ -63,7 +65,9 @@ void TMyApplication::InnerInit() | ||||
| 
 | ||||
| 	//Uncomment to start music playing
 | ||||
| 	//ResourceManager->SoundManager.PlayMusic("level1ogg.ogg");
 | ||||
| 	 | ||||
| 
 | ||||
|     Renderer->PushPerspectiveProjectionMatrix(pi/6, Renderer->GetMatrixWidth()/Renderer->GetMatrixHeight(), 1.f, 100.f); | ||||
|      | ||||
| 	*Console<<"Inner init end!\n"; | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user