Add specular component
[opengl.git] / cocoa.mm
diff --git a/cocoa.mm b/cocoa.mm
new file mode 100644 (file)
index 0000000..ce2549b
--- /dev/null
+++ b/cocoa.mm
@@ -0,0 +1,6 @@
+#import <Cocoa/Cocoa.h>
+void swizzle() {
+       NSWindow *window = [NSApp orderedWindows][0];
+       NSView *view = [window contentView];
+       [view setWantsBestResolutionOpenGLSurface: true];
+}