From f7ce70d139effc5553c4ed2fa604724413b9d9b2 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 6 Aug 2017 17:03:05 +0100 Subject: Adding clang format with my style based on google --- include/YAGE/glslprogram.hpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'include/YAGE/glslprogram.hpp') diff --git a/include/YAGE/glslprogram.hpp b/include/YAGE/glslprogram.hpp index 70f30b73..fd97c3a0 100644 --- a/include/YAGE/glslprogram.hpp +++ b/include/YAGE/glslprogram.hpp @@ -13,38 +13,38 @@ #include -namespace yage -{ +namespace yage { -class GlslProgram -{ +class GlslProgram { private: /// compiled shader program id - GLuint program_id_=0; - GLuint vertex_shader_id_=0; - GLuint fragment_shader_id_=0; - int attribute_index_=0; + GLuint program_id_ = 0; + GLuint vertex_shader_id_ = 0; + GLuint fragment_shader_id_ = 0; + int attribute_index_ = 0; /// compiles one shader - void compileShader(const GLuint &shader, const std::string &file_path); + void compileShader(const GLuint& shader, const std::string& file_path); + public: - GlslProgram()=default; - GlslProgram(const GlslProgram&)=delete; - GlslProgram(GlslProgram&&)=delete; + GlslProgram() = default; + GlslProgram(const GlslProgram&) = delete; + GlslProgram(GlslProgram&&) = delete; ~GlslProgram(); - GlslProgram& operator=(const GlslProgram&)=delete; - GlslProgram& operator=(GlslProgram&&)=delete; + GlslProgram& operator=(const GlslProgram&) = delete; + GlslProgram& operator=(GlslProgram&&) = delete; /// compiles vertex and fragment shader - void compileShaders(const std::string &vertex_shader_path, const std::string &fragment_shader_path); + void compileShaders(const std::string& vertex_shader_path, + const std::string& fragment_shader_path); void linkShaders(); - void addAttribute(const std::string &attribute_name); - GLint getUniformLocation(const std::string &uniform_name); + void addAttribute(const std::string& attribute_name); + GLint getUniformLocation(const std::string& uniform_name); void use(); void unuse(); }; -} // yage +} // yage #endif -- cgit