Remove ebiten_controller.c

This commit is contained in:
Hajime Hoshi 2013-12-11 00:54:00 +09:00
parent 54557aadf2
commit 0c51a7a362
3 changed files with 1 additions and 18 deletions

View File

@ -32,7 +32,7 @@ func loadImage(path string) (image.Image, error) {
func main() {
const screenWidth = 256
const screenHeight = 240
const screenScale = 2
const screenScale = 3
const fps = 60
const title = "Ebiten Demo"

View File

@ -1,14 +0,0 @@
// -*- objc -*-
#import "ebiten_controller.h"
@implementation EbitenController {
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:
(NSApplication*)theApplication {
(void)theApplication;
return YES;
}
@end

View File

@ -3,7 +3,6 @@
#include <stdlib.h>
#include <OpenGL/gl.h>
#import "ebiten_controller.h"
#import "ebiten_window.h"
void initMenu(void) {
@ -23,13 +22,11 @@ void initMenu(void) {
}
void StartApplication(void) {
EbitenController* controller = [[EbitenController alloc] init];
NSApplication* app = [NSApplication sharedApplication];
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
initMenu();
[app setDelegate:controller];
[app finishLaunching];
}