gln icon indicating copy to clipboard operation
gln copied to clipboard

OpenGL Next: functional programming and DSL

Results 10 gln issues
Sort by recently updated
recently updated
newest added

Thanks for your work, gln is really convenient. I'm migrating my project to gln and I encountered some problems without clue. Is there any example or some projects using gln?

Texture and queries are two special identifiers which will conserve for their entire life the given/bound target (more [here](https://stackoverflow.com/a/8887844/1047713), also this is the same reason why `create*` require the target...

[globjects](https://github.com/cginternals/globjects) poses a very interesting matter about the opengl state From their readme " State OpenGL state is wrapped as States, StateSettings and Capabilities, where the latter two are mainly...

design

We may consider dropping the identifier, which is superfluous `glGenBuffers, glBindBuffers, glCreateBuffers, glDeleteBuffers` and others, would become `glGen, glBind, glCreate, glDelete` Since we use inline classes, the compiler can figure...

Such as `inline class GlTexture(val name: Int = ?)` Shall we use 0 or -1? Note: every identifier has also a companion object value called `NULL` (this should be definitely...

What about the `gen*` functions where we don't pass anything or a reference to a single identifier? Shall we make it syntax-wise coherent and have, for example: `genTexture(): GlTexture` `genTexture(texture:...

design
semantic

At the moment it being offered only an overloaded function for all the `draw*` calls with `mode` default to `GL_TRIANGLES`. What do you think about it? Would you also like...

This will force use to only use core context. Currently, we have some GL11C things, but they might be deprecated in the newest versions

fun getEnabled(index: Int): Boolean = GL30C.glIsEnabledi(GL30C.GL_BLEND, index) fun setEnabled(index: Int, enabled: Boolean /*also `= true`?*/) = when { enabled -> GL30C.glEnablei(GL30C.GL_BLEND, index) else -> GL30C.glDisablei(GL30C.GL_BLEND, index) } or fun isEnabled(index:...

design
semantic

We start to have multiple gl objects. We have also gl object in gli.. maybe rename gl here to gln?

design
semantic