sy6sy2 / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS and Windows.
https://kodi.tv/
Other
6 stars 1 forks source link

refactoring to share common code between iOS and tvOS #88

Open kambala-decapitator opened 4 years ago

kambala-decapitator commented 4 years ago

Currently iOS and tvOS have a lot of similar duplicated code. This needs to be refactored to use common code for both platforms. Examples: app delegate, root view controller, GL view.

Also, I suggest to switch to GLKViewController if possible instead of using plain CAEAGLLayer inside custom view/view controller.

fuzzard commented 4 years ago

Is there a point to migrate to glkviewcontroller when both are deprecated in ios/tvos 12? Easier to just stick with caeagllayer and look at how we bring in metal instead for the long term goal?

kambala-decapitator commented 4 years ago

when Kodi was initially ported to iOS, GLKViewController wasn't available. Afterwards it has been added to iOS SDK to ease dealing with OpenGL surface.

Metal can be enabled almost out of the box with Molten VK as soon as Linux implementation of Vulkan is ready.