btstack/example/WiiMoteOpenGLDemo/Classes/EAGLViewController.m
2009-10-23 20:14:38 +00:00

26 lines
613 B
Objective-C

//
// EAGLViewController.m
//
// Created by Matthias Ringwald on 10/23/09.
//
#import "EAGLViewController.h"
#import "EAGLView.h"
@implementation EAGLViewController
// The simplest UIViewController subclass just overrides -loadView.
- (void)loadView
{
UIView *view = [[EAGLView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.view = view;
[view release];
self.title = @"WiiMote";
}
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
@end