@Override public int glGetShaderi(int shader, int param) { return GL20.glGetShaderi(shader, param); }
@Override public String glGetShaderInfoLog(int shader) { int logLength = GL20.glGetShaderi(shader, GL20.GL_INFO_LOG_LENGTH); return GL20.glGetShaderInfoLog(shader, logLength); }
@Override public String glGetShaderInfoLog(int shader) { int logLength = GL20.glGetShaderi(shader, GL20.GL_INFO_LOG_LENGTH); return GL20.glGetShaderInfoLog(shader, logLength); }
/** * Returns the information log for a shader object. * * @param shader the shader object whose information log is to be queried * * @see <a target="_blank" href="http://docs.gl/gl4/glGetShaderInfoLog">Reference Page</a> */ @NativeType("void") public static String glGetShaderInfoLog(@NativeType("GLuint") int shader) { return glGetShaderInfoLog(shader, glGetShaderi(shader, GL_INFO_LOG_LENGTH)); }
/** * Returns the source code string from a shader object. * * @param shader the shader object to be queried * * @see <a target="_blank" href="http://docs.gl/gl4/glGetShaderSource">Reference Page</a> */ @NativeType("void") public static String glGetShaderSource(@NativeType("GLuint") int shader) { return glGetShaderSource(shader, glGetShaderi(shader, GL_SHADER_SOURCE_LENGTH)); }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }
protected int createShader(String shaderCode, int shaderType) throws Exception { int shaderId = glCreateShader(shaderType); if (shaderId == 0) { throw new Exception("Error creating shader. Type: " + shaderType); } glShaderSource(shaderId, shaderCode); glCompileShader(shaderId); if (glGetShaderi(shaderId, GL_COMPILE_STATUS) == 0) { throw new Exception("Error compiling Shader code: " + glGetShaderInfoLog(shaderId, 1024)); } glAttachShader(programId, shaderId); return shaderId; }