littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
313 stars 12 forks source link

Remove `ShaderProgram` `getAttrib()` and `getUniform()` from throwing an `IllegalStateException` #231

Closed LeHaine closed 7 months ago

LeHaine commented 7 months ago

ShaderProgram.getAttrib() will now return a -1 if the attribute doesn't exist in the list. ShaderProgram.getUniform() will now return a null if the UniformLocation doesn't exist.