mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: bring back native rendering on macos
This commit is contained in:
9
thirdparty/sokol/sokol_app2.h
vendored
9
thirdparty/sokol/sokol_app2.h
vendored
@@ -1,9 +1,16 @@
|
||||
|
||||
@implementation MyView2
|
||||
|
||||
int xx = 0;
|
||||
|
||||
// Alternative drawRect which calls a frame function with native Cocoa calls
|
||||
- (void)drawRect:(NSRect)rect {
|
||||
_sapp_call_frame2();
|
||||
puts("drawRect()");
|
||||
if (xx == 0) {
|
||||
_sapp_call_init();
|
||||
xx = 1;
|
||||
}
|
||||
_sapp_call_frame_native();
|
||||
}
|
||||
|
||||
//- (BOOL)isOpaque {
|
||||
|
||||
Reference in New Issue
Block a user