static partial void LoadPlatformEntryPoints() { BindAPI = (BindAPIDelegate)Marshal.GetDelegateForFunctionPointer (EntryPointHelper.GetAddress ("eglBindAPI"), typeof(BindAPIDelegate)); var supportsFullGL = BindAPI (RenderApi.GL); if (!supportsFullGL) { BindAPI (RenderApi.ES); BoundApi = RenderApi.ES; } }
static partial void LoadPlatformEntryPoints() { BindAPI = (BindAPIDelegate)Marshal.GetDelegateForFunctionPointer(EntryPointHelper.GetAddress("eglBindAPI"), typeof(BindAPIDelegate)); var supportsFullGL = BindAPI(RenderApi.GL); if (!supportsFullGL) { BindAPI(RenderApi.ES); BoundApi = RenderApi.ES; } }
static partial void LoadPlatformEntryPoints() { Android.Util.Log.Verbose("GL", "Loading Entry Points"); var ptr = EntryPointHelper.GetAddress("eglBindAPI", throwIfNotFound: false); if (ptr != IntPtr.Zero) { BindAPI = (BindAPIDelegate)Marshal.GetDelegateForFunctionPointer(ptr, typeof(BindAPIDelegate)); } var supportsFullGL = ptr != IntPtr.Zero && BindAPI(RenderApi.GL); if (!supportsFullGL) { if (ptr != IntPtr.Zero) { BindAPI(RenderApi.ES); } BoundApi = RenderApi.ES; } Android.Util.Log.Verbose("GL", "Bound {0}", BoundApi); }
static partial void LoadPlatformEntryPoints() { Android.Util.Log.Verbose("GL", "Loading Entry Points"); var eglBindLoaded = false; try { BindAPI = FuncLoader.LoadFunction <BindAPIDelegate>(libGL, "eglBindAPI", true); eglBindLoaded = true; } catch { } var supportsFullGL = eglBindLoaded && BindAPI(RenderApi.GL); if (!supportsFullGL) { if (eglBindLoaded) { BindAPI(RenderApi.ES); } BoundApi = RenderApi.ES; } Android.Util.Log.Verbose("GL", "Bound {0}", BoundApi); if (BoundApi == RenderApi.ES && libES3 != IntPtr.Zero) { Library = libES3; } if (BoundApi == RenderApi.ES && libES2 != IntPtr.Zero) { Library = libES2; } else if (BoundApi == RenderApi.GL && libGL != IntPtr.Zero) { Library = libGL; } }