Initializes (if needed) and binds the shader program.
()
| 348 | * Initializes (if needed) and binds the shader program. |
| 349 | */ |
| 350 | public void bind() { |
| 351 | init(); |
| 352 | if (!bound) { |
| 353 | pgl.useProgram(glProgram); |
| 354 | bound = true; |
| 355 | consumeUniforms(); |
| 356 | bindTextures(); |
| 357 | } |
| 358 | |
| 359 | if (hasType()) bindTyped(); |
| 360 | } |
| 361 | |
| 362 | |
| 363 | /** |
no test coverage detected