Initializes (if needed) and binds the shader program.
()
| 354 | * Initializes (if needed) and binds the shader program. |
| 355 | */ |
| 356 | public void bind() { |
| 357 | init(); |
| 358 | if (!bound) { |
| 359 | pgl.useProgram(glProgram); |
| 360 | bound = true; |
| 361 | consumeUniforms(); |
| 362 | bindTextures(); |
| 363 | } |
| 364 | |
| 365 | if (hasType()) bindTyped(); |
| 366 | } |
| 367 | |
| 368 | |
| 369 | /** |
no test coverage detected