Created
May 23, 2012 23:53
-
-
Save dineybomfim/2778528 to your computer and use it in GitHub Desktop.
NinevehGL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| // Loading a new 3D file. | |
| _mesh = [[NGLMesh alloc] initWithFile:@"cube.obj" settings:nil delegate:nil]; | |
| // Initiates the camera. | |
| _camera = [[NGLCamera alloc] initWithMeshes:_mesh, nil]; | |
| [_camera autoAdjustAspectRatio:YES animated:YES]; | |
| // Starts the debug monitor. | |
| [[NGLDebug debugMonitor] startWithView:(NGLView *)self.view]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment