Maven module :un.engine : engine-opengl-util :
Class : un.impl.opengl.shader.VertexAttribute
Extends/Implements : -
Subclasses : -

Vertex shader attribute (Layout).
author  Johann Sorel


Variables : -
Functions : VertexAttribute, getProgramId, getLayoutIdx, getType, getSlotSize, exist, enable, disable



public void VertexAttribute (int programId, int layoutIdx, int type, int slotSize)

public int getProgramId ()

public int getLayoutIdx ()

public int getType ()


Slot size is the number of layout index used.
return
public int getSlotSize ()


Since the compiler may exclude some layout because they are not used.
return  true if layout exist. (layout index >= 0)
public boolean exist ()


Bind given vbo to this vertex attribute.
Has no effect if vbo is null or layout has no index.
param  gl
param  vbo
public void enable (GL2ES2 gl, VBO vbo)

public void disable (GL2ES2 gl)