public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
@Override public String glGetActiveAttrib(int program, int index, IntBuffer size, IntBuffer type) { return GL20.glGetActiveAttrib(program, index, size, type); }
@Override public String glGetActiveUniform(int program, int index, IntBuffer size, IntBuffer type) { return GL20.glGetActiveAttrib(program, index, size, type); }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
@Override public String glGetActiveAttrib(int program, int index, IntBuffer size, IntBuffer type) { IntBuffer sizeType = BufferUtils.createIntBuffer(2); String result = GL20.glGetActiveAttrib(program, index, 256, type); int typePos = type.position(); type.put(sizeType.get(0)); type.position(typePos); int sizePos = size.position(); size.put(sizeType.get(1)); size.position(sizePos); return result; }
@Override public String glGetActiveUniform(int program, int index, IntBuffer size, IntBuffer type) { IntBuffer sizeType = BufferUtils.createIntBuffer(2); String result = GL20.glGetActiveAttrib(program, index, 256, sizeType); int typePos = type.position(); type.put(sizeType.get(0)); type.position(typePos); int sizePos = size.position(); size.put(sizeType.get(1)); size.position(sizePos); return result; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
@Override public void glGetActiveUniform(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); GL20.glGetActiveAttrib(program, index, 256, typeTmp); type.put(typeTmp.get(0)); type.rewind(); }
@Override public void glGetActiveAttrib(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); GL20.glGetActiveAttrib(program, index, 256, typeTmp); type.put(typeTmp.get(0)); type.rewind(); }
@Override public void glGetActiveUniform(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); GL20.glGetActiveAttrib(program, index, 256, typeTmp); type.put(typeTmp.get(0)); type.rewind(); }
@Override public void glGetActiveAttrib(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); GL20.glGetActiveAttrib(program, index, 256, typeTmp); type.put(typeTmp.get(0)); type.rewind(); }
@Override public void glGetActiveAttrib(int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset) { // http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml // Returns length, size, type, name bufs.resizeIntBuffer(2); // Return name, length final String nameString = GL20.glGetActiveAttrib(program, index, bufsize, bufs.intBuffer); try { final byte[] nameBytes = nameString.getBytes("UTF-8"); final int nameLength = nameBytes.length - nameOffset; bufs.setByteBuffer(nameBytes, nameOffset, nameLength); bufs.byteBuffer.get(name, nameOffset, nameLength); length[lengthOffset] = nameLength; } catch (UnsupportedEncodingException e) { e.printStackTrace(); } // Return size, type bufs.intBuffer.get(size, 0, 1); bufs.intBuffer.get(type, 0, 1); }
@Override public void glGetActiveAttrib(int program, int index, int bufsize, int[] length, int lengthOffset, int[] size, int sizeOffset, int[] type, int typeOffset, byte[] name, int nameOffset) { // http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml // Returns length, size, type, name bufs.resizeIntBuffer(2); // Return name, length final String nameString = GL20.glGetActiveAttrib(program, index, bufsize, bufs.intBuffer); try { final byte[] nameBytes = nameString.getBytes("UTF-8"); final int nameLength = nameBytes.length - nameOffset; bufs.setByteBuffer(nameBytes, nameOffset, nameLength); bufs.byteBuffer.get(name, nameOffset, nameLength); length[lengthOffset] = nameLength; } catch (UnsupportedEncodingException e) { e.printStackTrace(); } // Return size, type bufs.intBuffer.get(size, 0, 1); bufs.intBuffer.get(type, 0, 1); }
buffer_name.rewind(); GL20.glGetActiveAttrib( id, index, buffer_length, buffer_size, buffer_type, buffer_name);
buffer_name.rewind(); GL20.glGetActiveAttrib( id, index, buffer_length, buffer_size, buffer_type, buffer_name);
/** * Returns information about an active attribute variable for the specified program object. * * @param program the program object to be queried * @param index the index of the attribute variable to be queried * @param size the size of the attribute variable * @param type the data type of the attribute variable * * @see <a target="_blank" href="http://docs.gl/gl4/glGetActiveAttrib">Reference Page</a> */ @NativeType("void") public static String glGetActiveAttrib(@NativeType("GLuint") int program, @NativeType("GLuint") int index, @NativeType("GLint *") IntBuffer size, @NativeType("GLenum *") IntBuffer type) { return glGetActiveAttrib(program, index, glGetProgrami(program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH), size, type); }