You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
404 B
27 lines
404 B
#include "app.hpp"
|
|
|
|
#include <NSWrapper.hpp>
|
|
|
|
#include <memory>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
NSAppWrapper app;
|
|
unique_ptr<App> a;
|
|
app.create_window({
|
|
[&](ContextParameters ctxp){
|
|
a = make_unique<App>(ctxp.context);
|
|
},
|
|
[&](ContextParameters){
|
|
a->draw();
|
|
},
|
|
[&](ContextParameters, CGFloat w, CGFloat h){
|
|
a->resize(size_t(floor(w)), size_t(floor(h)));
|
|
}
|
|
});
|
|
|
|
app.run();
|
|
}
|
|
|
|
|
|
|