|
|
@@ -50,6 +50,7 @@ static void* __attachToWindow = NULL;
|
|
|
static bool __mouseCaptured = false;
|
|
|
static bool __mouseCapturedFirstPass = false;
|
|
|
static CGPoint __mouseCapturePoint;
|
|
|
+static bool __multiSampling = false;
|
|
|
static bool __cursorVisible = true;
|
|
|
static View* __view = NULL;
|
|
|
|
|
|
@@ -770,6 +771,8 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
|
|
};
|
|
|
NSOpenGLPixelFormatAttribute* attrs = __fullscreen ? fullscreenAttrs : windowedAttrs;
|
|
|
|
|
|
+ __multiSampling = samples > 0;
|
|
|
+
|
|
|
// Try to choose a supported pixel format
|
|
|
NSOpenGLPixelFormat* pf = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs];
|
|
|
if (!pf)
|
|
|
@@ -787,6 +790,8 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTime
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ __multiSampling = samples > 0;
|
|
|
|
|
|
if (!valid)
|
|
|
{
|
|
|
@@ -1647,6 +1652,23 @@ void Platform::sleep(long ms)
|
|
|
usleep(ms * 1000);
|
|
|
}
|
|
|
|
|
|
+void Platform::setMultiSampling(bool enabled)
|
|
|
+{
|
|
|
+ if (enabled == __multiSampling)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ //todo
|
|
|
+
|
|
|
+ __multiSampling = enabled;
|
|
|
+}
|
|
|
+
|
|
|
+bool Platform::isMultiSampling()
|
|
|
+{
|
|
|
+ return __multiSampling;
|
|
|
+}
|
|
|
+
|
|
|
void Platform::setMultiTouch(bool enabled)
|
|
|
{
|
|
|
}
|