When comparing OpenGL vs GitHub Electron, the Slant community recommends GitHub Electron for most people. In the question“What are the best tools for making a cross-platform application?” GitHub Electron is ranked 8th while OpenGL is ranked 18th. The most important reason people chose GitHub Electron is:
No need to learn native UI APIs for multiple platforms.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Popular
Expect tons of examples and communities to aid your development and learning.
Pro Cross platform and used by the best engines
Godot, Unity, Unreal Engine, GameMaker studio 2.
Pro Relatively low barrier to entry
No need to learn native UI APIs for multiple platforms.
Pro Has a built in packager which allows you to package web apps
the electron packager tool allows you to package your web app for any target platform that you desire, as long as you provide the correct information.
Cons
Con Looks and feels like an alien
Con Microsoft
Developed by Microsoft-owned Github
Con Extra effort may be required to make things look native on each platform
Con Mobile platforms not supported
According to documentation only Windows, Linux and Mac are supported, no mobile platforms.
Con Heavyweight
Requires a bit of system memory, and makes applications bulky due to the fact that all your web apps made in electron work in a NodeJS Shell that is basically a web browser displaying your app.