mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
34 lines
710 B
Plaintext
34 lines
710 B
Plaintext
#include "app/mac/View.h"
|
|
#include "app/mac/EngineGLLayerView.h"
|
|
#include "app/mac/EngineMTLLayerView.h"
|
|
#include "app/mac/WindowCallbacks.h"
|
|
#include "gx/gll/GLWindow.h"
|
|
#include "gx/Device.hpp"
|
|
|
|
GLWindowCallbacks EngineViewCallbacks = {
|
|
&MacOnResized,
|
|
&MacOnMouseDown,
|
|
&MacOnMouseMoved,
|
|
&MacOnMouseUp,
|
|
&MacOnKeyDown,
|
|
&MacOnKeyUp
|
|
};
|
|
|
|
void AssignEngineViewCallbacks(GLWindowCallbacks* callbacks) {
|
|
*callbacks = EngineViewCallbacks;
|
|
|
|
// TODO
|
|
// (callbacks + 100) = 0;
|
|
|
|
// TODO
|
|
// dword_12B9F54 = sub_A15850;
|
|
}
|
|
|
|
Class GetEngineViewClass() {
|
|
if (GxDevApi() == GxApi_Metal) {
|
|
return [EngineMTLLayerView class];
|
|
}
|
|
|
|
return [EngineGLLayerView class];
|
|
}
|