List of usage examples for org.lwjgl.opengl GL20 glBindAttribLocation
public static void glBindAttribLocation(@NativeType("GLuint") int program, @NativeType("GLuint") int index, @NativeType("GLchar const *") CharSequence name)
From source file:renderEngine.ShaderProgram.java
/** * Will take in the number of the attribute list in the VAO and bind it to * the variable name in the shader.// ww w .j a v a2s . c o m * * @param attribute The number of the attribute list in the VAO. * @param variableName The name of the variable in the shader. */ protected void bindAttribute(int attribute, String variableName) { GL20.glBindAttribLocation(programID, attribute, variableName); }
From source file:thebounzer.org.lwgldemo.glutils.ShaderProgram.java
License:Open Source License
private void setAttributes(int programId, HashMap<Integer, String> attributes) { for (Entry e : attributes.entrySet()) { int n = (Integer) e.getKey(); String s = (String) e.getValue(); GL20.glBindAttribLocation(programId, n, s); }/*from w w w. j av a2s .c o m*/ }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glBindAttribLocation(int a, int b, CharSequence c) { GL20.glBindAttribLocation(a, b, c); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glBindAttribLocation(int a, int b, ByteBuffer c) { GL20.glBindAttribLocation(a, b, c); }
From source file:uk.co.ifs_studios.engine.shader.ShaderProgram.java
License:Open Source License
/** * Create attribute./*from w ww . j av a 2 s.c om*/ * * @param id * - Unique ID for attribute. * @param value * - Variable name for attribute. */ public void addAttribute(int id, String value) { GL20.glBindAttribLocation(this.id, id, value); }
From source file:wrath.client.graphics.ShaderProgram.java
License:Open Source License
/** * Binds an OpenGL attribute to the shader program. * This all must be done before the shader program is run. * @param attribute The OpenGL attribute ID. * @param variable The {@link java.lang.String} form of the attribute variable name. *//*from w w w. j a v a 2 s . co m*/ public void bindAttribute(int attribute, String variable) { if (finalized) return; GL20.glBindAttribLocation(programID, attribute, variable); }