@Override public String glGetProgramInfoLog(final int program, final int maxSize) { return GL20.glGetProgramInfoLog(program, maxSize); }
public String glGetProgramInfoLog(int program, int maxSize) { return GL20.glGetProgramInfoLog(program, maxSize); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
@Override public String glGetProgramInfoLog(int program) { return GL20.glGetProgramInfoLog(program); }
@Override public void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); }
@Override public void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); }
@Override public void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); }
@Override public void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
public String glGetProgramInfoLog (int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
@Override public String glGetProgramInfoLog(int program) { ByteBuffer buffer = ByteBuffer.allocateDirect(1024 * 10); buffer.order(ByteOrder.nativeOrder()); ByteBuffer tmp = ByteBuffer.allocateDirect(4); tmp.order(ByteOrder.nativeOrder()); IntBuffer intBuffer = tmp.asIntBuffer(); GL20.glGetProgramInfoLog(program, intBuffer, buffer); int numBytes = intBuffer.get(0); byte[] bytes = new byte[numBytes]; buffer.get(bytes); return new String(bytes); }
@Override public String glGetProgramInfoLog(int program) { int logLength = GL20.glGetProgrami(program, GL20.GL_INFO_LOG_LENGTH); return GL20.glGetProgramInfoLog(program, logLength); }
private static JCGLExceptionProgramCompileError getLinkError( final String name, final int id) { return new JCGLExceptionProgramCompileError( name, GL20.glGetProgramInfoLog(id)); }
private static JCGLExceptionProgramCompileError getLinkError( final String name, final int id) { return new JCGLExceptionProgramCompileError( name, GL20.glGetProgramInfoLog(id)); }
@Override public String glGetProgramInfoLog(int program) { int logLength = GL20.glGetProgrami(program, GL20.GL_INFO_LOG_LENGTH); return GL20.glGetProgramInfoLog(program, logLength); }
@Override public String getProgramInfoLog(int program) { int infoLogLength = GL20.glGetProgram(program, GL20.GL_INFO_LOG_LENGTH); if (infoLogLength <= 1) { return null; } String infoLog = GL20.glGetProgramInfoLog(program, infoLogLength); // Remove ending '\0' byte(s) while (infoLog.length() > 0 && infoLog.charAt(infoLog.length() - 1) == '\0') { infoLog = infoLog.substring(0, infoLog.length() - 1); } return infoLog; }
/** * Returns the information log for a program object. * * @param program the program object whose information log is to be queried * * @see <a target="_blank" href="http://docs.gl/gl4/glGetProgramInfoLog">Reference Page</a> */ @NativeType("void") public static String glGetProgramInfoLog(@NativeType("GLuint") int program) { return glGetProgramInfoLog(program, glGetProgrami(program, GL_INFO_LOG_LENGTH)); }