Java Code Examples for org.lwjgl.opengl.ARBShaderObjects#glUseProgramObjectARB()
The following examples show how to use
org.lwjgl.opengl.ARBShaderObjects#glUseProgramObjectARB() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShaderUtil.java From Cyberware with MIT License | 4 votes |
public static void alpha(float av) { ARBShaderObjects.glUseProgramObjectARB(alpha); int a = ARBShaderObjects.glGetUniformLocationARB(alpha, "alpha"); ARBShaderObjects.glUniform1fARB(a, av); }
Example 2
Source File: ShaderUtil.java From Cyberware with MIT License | 4 votes |
public static void releaseShader() { ARBShaderObjects.glUseProgramObjectARB(0); }
Example 3
Source File: ShaderHelper.java From OpenModsLib with MIT License | 4 votes |
@Override public void glUseProgram(int program) { ARBShaderObjects.glUseProgramObjectARB(program); }