Skip to content

Commit

Permalink
updated shader header and source comments
Browse files Browse the repository at this point in the history
  • Loading branch information
humanshell committed Feb 16, 2016
1 parent 7328e41 commit 13a9c0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 4 additions & 5 deletions include/glisy/shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ struct glisy_shader {
};

/**
* Glisy Shader initializer.
* @param shader - pointer to a Glisy Shader struct
* @param type - GL vertex or fragment shader type enum
* @param source - pointer to a string buffer containing GLSL source
*
* This function uses glCreateShader(), glShaderSource(), and glShaderCompile()
* to initializes a Glisy Vertex or Fragment Shader that can be attached to a
* Glisy Program. It will return false if glGetShaderiv() reports a failure to
* compile, shader is NULL, or shader->id is 0. Otherwise it will return true.
* if glGetShaderiv() reports a failure glDeleteShader() is called to destroy
* the shader.
*
* @param shader * - pointer to a glisy_shader struct.
* @param type - GL vertex or fragment shader type enum.
* @param source * - pointer to a string buffer containing GLSL source.
*/

GLboolean
Expand Down
4 changes: 0 additions & 4 deletions src/shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
#include <glisy/gl.h>
#include <glisy/shader.h>

/**
* Glisy Shader initializer.
*/

GLboolean
glisy_shader_init(glisy_shader *shader, GLuint type, const char *source) {
GLint isCompiled = 0;
Expand Down

0 comments on commit 13a9c0f

Please sign in to comment.