org.lwjgl.opengl.ARBVertexShader Java Examples

The following examples show how to use org.lwjgl.opengl.ARBVertexShader. 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: ShaderProgram.java    From CodeChickenLib with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void glVertexAttributeMat4(int loc, Matrix4f matrix)
{
    ARBVertexShader.glVertexAttrib4fARB(loc  , matrix.m00, matrix.m01, matrix.m02, matrix.m03);
    ARBVertexShader.glVertexAttrib4fARB(loc+1, matrix.m10, matrix.m11, matrix.m12, matrix.m13);
    ARBVertexShader.glVertexAttrib4fARB(loc+2, matrix.m20, matrix.m21, matrix.m22, matrix.m23);
    ARBVertexShader.glVertexAttrib4fARB(loc+3, matrix.m30, matrix.m31, matrix.m32, matrix.m33);
}
 
Example #2
Source File: ShaderProgram.java    From CodeChickenLib with GNU Lesser General Public License v2.1 4 votes vote down vote up
public int getAttribLoc(String name)
{
    return ARBVertexShader.glGetAttribLocationARB(programID, name);
}
 
Example #3
Source File: ShaderHelper.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public int glGetAttribLocation(int program, String attrib) {
	return ARBVertexShader.glGetAttribLocationARB(program, attrib);
}
 
Example #4
Source File: ShaderHelper.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public void glEnableVertexAttribArray(int index) {
	ARBVertexShader.glEnableVertexAttribArrayARB(index);
}
 
Example #5
Source File: ShaderHelper.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public void glDisableVertexAttribArray(int index) {
	ARBVertexShader.glDisableVertexAttribArrayARB(index);
}
 
Example #6
Source File: ShaderHelper.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long offset) {
	ARBVertexShader.glVertexAttribPointerARB(index, size, type, normalized, stride, offset);
}