forked from LeenkxTeam/LNXRNT
Kore sync
This commit is contained in:
@ -13,21 +13,17 @@
|
||||
|
||||
#include <kinc/backend/windowdata.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
bool withAutoreleasepool(bool (*f)(void)) {
|
||||
@autoreleasepool {
|
||||
return f();
|
||||
}
|
||||
}
|
||||
|
||||
extern const char *macgetresourcepath(void);
|
||||
|
||||
const char *macgetresourcepath(void) {
|
||||
return [[[NSBundle mainBundle] resourcePath] cStringUsingEncoding:NSUTF8StringEncoding];
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@interface KincApplication : NSApplication {
|
||||
}
|
||||
@ -95,17 +91,11 @@ bool kinc_internal_handle_messages(void) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void swapBuffersMac(int windowId) {
|
||||
#ifndef KINC_METAL
|
||||
[windows[windowId].view switchBuffers];
|
||||
#endif
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
static int createWindow(kinc_window_options_t *options) {
|
||||
int width = options->width / [[NSScreen mainScreen] backingScaleFactor];
|
||||
|
||||
@ -14,26 +14,14 @@ void kinc_window_resize(int window, int width, int height) {}
|
||||
|
||||
void kinc_window_move(int window, int x, int y) {}
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void kinc_internal_change_framebuffer(int window, struct kinc_framebuffer_options *frame);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
void kinc_window_change_framebuffer(int window, struct kinc_framebuffer_options *frame) {
|
||||
kinc_internal_change_framebuffer(0, frame);
|
||||
}
|
||||
|
||||
#ifdef KINC_METAL
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void kinc_internal_change_framebuffer(int window, struct kinc_framebuffer_options *frame) {}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void kinc_window_change_features(int window, int features) {}
|
||||
|
||||
Reference in New Issue
Block a user