Ejemplo n.º 1
0
 static GL()
 {
     #if UNITY_STANDALONE_OSX
     implementation = new GLMac();
     #elif UNITY_STANDALONE_WINDOWS
     implementation = new GLWin();
     #else
     if (Environment.OSVersion.Platform == PlatformID.MacOSX) {
         implementation = new GLMac();
     }
     else {
         implementation = new GLWin();
     }
     #endif
 }
Ejemplo n.º 2
0
    static GL() 
    {
#if UNITY_STANDALONE_OSX
        implementation = new GLMac();
#elif UNITY_STANDALONE_WINDOWS
        implementation = new GLWin();
#else // assume editor - other platforms will be solved later
        if (Environment.OSVersion.Platform == PlatformID.MacOSX) {
            implementation = new GLMac();
        }
        else {
            implementation = new GLWin();
        }
#endif
    }
Ejemplo n.º 3
0
    static GL()
    {
#if UNITY_STANDALONE_OSX
        implementation = new GLMac();
#elif UNITY_STANDALONE_WINDOWS
        implementation = new GLWin();
#else // assume editor - other platforms will be solved later
        if (Environment.OSVersion.Platform == PlatformID.MacOSX)
        {
            implementation = new GLMac();
        }
        else
        {
            implementation = new GLWin();
        }
#endif
    }