-
Notifications
You must be signed in to change notification settings - Fork 39
/
ViewController.m
85 lines (59 loc) · 1.74 KB
/
ViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//
// SDLviewController.m
// StreamX
//
// Created by Michelle on 2/14/10.
// Copyright 2010 _mooncatventures.com. All rights reserved.
// Please see specific dual licensing file for gpl/lgl/mozillia license details
//
#import "ViewController.h"
#import <SDL/SDL.h>
@implementation ViewController
@synthesize tabBar;
@synthesize url;
-(id) initWithNav {
if ([self init]) {
//this is the label on the tab button itself
// set the long name shown in the navigation bar
//self.navigationItem.title=@"Player";
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
SDLUIKitDelegate *appDelegate = [SDLUIKitDelegate sharedAppDelegate];
NSString *glString = appDelegate.glInit;
appDelegate.glInit =@"1";
NSLog(@"pass stage 1");
NSMutableDictionary *parms = [[NSMutableDictionary alloc] init];
[parms setObject: url forKey: @"url"];
NSLog(@"set url");
[parms setObject: glString forKey: @"glflag" ];
NSLog(@"all objects set");
[appDelegate postProcessing:parms];
}
- (void)setUrl:(NSString*)thisUrl {
url=thisUrl;
}
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
NSLog(@"exit sdviewControler unload");
}
-(void) viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:NO];
NSLog(@"exit sdviewControler");
}
- (void)dealloc {
[super dealloc];
}
@end