Skip to content

Instantly share code, notes, and snippets.

@dineybomfim
Created May 23, 2012 23:53
Show Gist options
  • Select an option

  • Save dineybomfim/2778528 to your computer and use it in GitHub Desktop.

Select an option

Save dineybomfim/2778528 to your computer and use it in GitHub Desktop.
NinevehGL Example
- (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