diff options
author | sanine-a <sanine.not@pm.me> | 2020-11-29 15:16:42 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-11-29 15:16:42 -0600 |
commit | 140666204191b218b72274d8d14921c89a6631fd (patch) | |
tree | 8436c81dda007e934f6b5cadd41789c677306b44 /src/shader/shader.h | |
parent | 146d708c67172a05a62f944b16fdcb0dccc4713d (diff) |
refactor: eliminate src subdirectories for honey files
Diffstat (limited to 'src/shader/shader.h')
-rw-r--r-- | src/shader/shader.h | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/src/shader/shader.h b/src/shader/shader.h deleted file mode 100644 index 95956ea..0000000 --- a/src/shader/shader.h +++ /dev/null @@ -1,100 +0,0 @@ -/** @file shader.h - * - * @brief Functions to create, manipulate, and destroy GLSL shaders. - */ - -#ifndef HONEY_SHADER_H -#define HONEY_SHADER_H - -#include "../common.h" - -/** @brief Push the shader table to the lua stack. - */ -void honey_setup_shader(lua_State* L); - -/** @brief Create a new shader from source. - * - * @param[in] vertex_source The GLSL code for the vertex shader. - * @param[in] fragment_source The GLSL code for the fragment shader. - * - * @returns OpenGL handle for the compiled shader. - */ -int honey_shader_new(lua_State* L); - -/** @brief Set a shader as the current OpenGL shader. - * - * @param[in] shader The OpenGL handle to a shader, as generated by honey.shader.new - * - * @returns Nothing. - */ -int honey_shader_use(lua_State* L); - -/** @brief Set an integer uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_int(lua_State* L); - -/** @brief Set a float uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_float(lua_State* L); - -/** @brief Set a vec3 uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_vec3(lua_State* L); - -/** @brief Set a vec4 uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_vec4(lua_State* L); - -/** @brief Set a mat3 uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_mat3(lua_State* L); - -/** @brief Set a mat4 uniform on a shader. - * - * @param[in] shader The OpenGL shader handle. - * @param[in] name The name of the shader uniform as a string. - * @param[in] value The value to set the uniform to. - * - * @returns Nothing. - */ -int honey_shader_set_mat4(lua_State* L); - -/** @brief Delete a shader. - * - * @param[in] shader An OpenGL shader handle. - * - * @returns Nothing. - */ -int honey_shader_delete(lua_State* L); - -#endif |