OSX Refactor -> renamed OSXViewController to OSXViewDelegate

This commit is contained in:
Carlos Aragones 2020-05-17 19:53:06 +02:00
parent 80a7a33b7c
commit 51d00541e5
4 changed files with 7 additions and 7 deletions

View File

@ -38,8 +38,8 @@ set(SrcMacOSX
src/macosx/OSXWindow.m
src/macosx/OSXView.h
src/macosx/OSXView.m
src/macosx/OSXViewController.h
src/macosx/OSXViewController.m
src/macosx/OSXViewDelegate.h
src/macosx/OSXViewDelegate.m
src/macosx/WindowData_OSX.h
)

View File

@ -1,6 +1,6 @@
#include "OSXWindow.h"
#include "OSXView.h"
#include "OSXViewController.h"
#include "OSXViewDelegate.h"
#include "WindowData_OSX.h"
#include <MiniFB.h>
#include <MiniFB_enums.h>
@ -129,7 +129,7 @@ mfb_open_ex(const char *title, unsigned width, unsigned height, unsigned flags)
}
#if defined(USE_METAL_API)
OSXViewController *viewController = [[OSXViewController alloc] initWithWindowData:window_data];
OSXViewDelegate *viewController = [[OSXViewDelegate alloc] initWithWindowData:window_data];
MTKView* view = [[MTKView alloc] initWithFrame:rectangle];
view.device = viewController->metal_device;

View File

@ -10,7 +10,7 @@ enum { MaxBuffersInFlight = 3 };
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@interface OSXViewController : NSViewController<MTKViewDelegate>
@interface OSXViewDelegate : NSViewController<MTKViewDelegate>
{
@public SWindowData *window_data;
@public SWindowData_OSX *window_data_osx;

View File

@ -1,4 +1,4 @@
#include "OSXViewController.h"
#include "OSXViewDelegate.h"
#if defined(USE_METAL_API)
@ -49,7 +49,7 @@ NSString *g_shader_src = kShader(
);
//-------------------------------------
@implementation OSXViewController
@implementation OSXViewDelegate
//-------------------------------------
- (id) initWithWindowData:(SWindowData *) windowData {