elect
07/27/2018, 10:36 AMinline class DrawMode(val i: Int)
val Triangles = DrawMode(GL_TRIANGLES)
...
fun glDrawArray(mode: DrawMode, count: Int) = ..
whenever I type `glDrawArray(`and I call for type completition all DrawMode
top level members will be available and suggested as first ones.
I like this because I don't have to type glDrawArray(DrawMode.Triangles, ..)
. I know I can work on the import, but this is overhead for me.
Disadvantage, final user can of course implement it's own/additional DrawMode
(not really a vs, since this gives the possibility for the user to add some newer enums from the latest API, where I still didnt catch on) and they are not guaranteed to be unique.
Do you see other differences? What's your feeling about this? I'm looking especially at you @gildor @karelpeeters @louiscad @diesieben07 🙂karelpeeters
07/27/2018, 4:06 PMelect
07/28/2018, 8:02 AMelect
07/28/2018, 8:02 AMelect
08/03/2018, 10:09 AMelect
08/03/2018, 10:09 AM