Skip to content

Instantly share code, notes, and snippets.

@dineybomfim
dineybomfim / gist:2778528
Created May 23, 2012 23:53
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];