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
 }
Exemple #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
    }
Exemple #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
    }