-- I have this in my appdelegate.m among all the other default calls: --
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window makeKeyAndVisible];
NSLog(@"Launched");
return YES;
}
-- My main.mm looks like this: --
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#include <allegro5/allegro.h>
ALLEGRO_DISPLAY *Display;
int main(int argc, char *argv[])
{
al_init();
al_set_new_display_option(ALLEGRO_SUPPORTED_ORIENTATIONS,
ALLEGRO_DISPLAY_ORIENTATION_LANDSCAPE,ALLEGRO_REQUIRE);
Display = al_create_display(960, 640);
printf("%d, %d", al_get_display_width(Display),
al_get_display_height(Display));
return 0;
}
As soon as i include allegro.h and all the required libraries/frameworks in my project and call al_init() inside main, the program stops printing "Launched". It seems like the AppDelegate is being ignored totally. Anyone got any tips ???