public Attribute getAttribute(VertexBuffer.Type attribType){ int ordinal = attribType.ordinal(); Attribute attrib = attribs.get(ordinal); if (attrib == null){ attrib = new Attribute(); attrib.name = attribType.name(); attribs.put(ordinal, attrib); } return attrib; }
int loc = attrib.getLocation(); if (loc == -1) { return; // not defined attrib.setLocation(-1); return; // not available in shader. } else { attrib.setLocation(loc);
int loc = attrib.getLocation(); if (loc == -1) { return; // not defined attrib.setLocation(-1); return; // not available in shader. } else { attrib.setLocation(loc);
public Attribute getAttribute(VertexBuffer.Type attribType){ int ordinal = attribType.ordinal(); Attribute attrib = attribs.get(ordinal); if (attrib == null){ attrib = new Attribute(); attrib.name = attribType.name(); attribs.put(ordinal, attrib); } return attrib; }
int loc = attrib.getLocation(); if (loc == -1) { return; // not defined attrib.setLocation(-1); return; // not available in shader. } else { attrib.setLocation(loc);
public Attribute getAttribute(VertexBuffer.Type attribType){ int ordinal = attribType.ordinal(); Attribute attrib = attribs.get(ordinal); if (attrib == null){ attrib = new Attribute(); attrib.name = attribType.name(); attribs.put(ordinal, attrib); } return attrib; }