mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Remove ebiten_controller.c
This commit is contained in:
parent
54557aadf2
commit
0c51a7a362
@ -32,7 +32,7 @@ func loadImage(path string) (image.Image, error) {
|
|||||||
func main() {
|
func main() {
|
||||||
const screenWidth = 256
|
const screenWidth = 256
|
||||||
const screenHeight = 240
|
const screenHeight = 240
|
||||||
const screenScale = 2
|
const screenScale = 3
|
||||||
const fps = 60
|
const fps = 60
|
||||||
const title = "Ebiten Demo"
|
const title = "Ebiten Demo"
|
||||||
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
// -*- objc -*-
|
|
||||||
|
|
||||||
#import "ebiten_controller.h"
|
|
||||||
|
|
||||||
@implementation EbitenController {
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:
|
|
||||||
(NSApplication*)theApplication {
|
|
||||||
(void)theApplication;
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
@ -3,7 +3,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
|
|
||||||
#import "ebiten_controller.h"
|
|
||||||
#import "ebiten_window.h"
|
#import "ebiten_window.h"
|
||||||
|
|
||||||
void initMenu(void) {
|
void initMenu(void) {
|
||||||
@ -23,13 +22,11 @@ void initMenu(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void StartApplication(void) {
|
void StartApplication(void) {
|
||||||
EbitenController* controller = [[EbitenController alloc] init];
|
|
||||||
NSApplication* app = [NSApplication sharedApplication];
|
NSApplication* app = [NSApplication sharedApplication];
|
||||||
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
|
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||||
|
|
||||||
initMenu();
|
initMenu();
|
||||||
|
|
||||||
[app setDelegate:controller];
|
|
||||||
[app finishLaunching];
|
[app finishLaunching];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user