When comparing OpenGL vs Codename One, the Slant community recommends Codename One for most people. In the question“What are the best tools for making a cross-platform application?” Codename One is ranked 17th while OpenGL is ranked 18th.
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 High performance
Pro Open source
Pro Highly customizable
By utilizing lightweight component architecture and the built in graphical designer and theming options you are able to customize a good looking app on any platform.
Pro Java 8 support
Pro Works with all IDEs
Works with NetBeans, Eclipse, IntelliJ, etc.
Pro Multi-platform development environments (via build server)
You can even use Linux desktops to build native iOS apps, no need for a Mac.
Pro Vibrant & helpful community
Pro Attractive pricing
It is possible to build production grade apps even with the free version. Pricing is decent when compared to competitors like Xamarin.