From 5403490b941f7c031bf1aafdb91b1098f69edbf2 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 24 Aug 2017 00:21:07 +0100 Subject: Running clang-format over everything. Edited formatting and ran it over all the files. --- include/YAGE/glslprogram.hpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'include/YAGE/glslprogram.hpp') diff --git a/include/YAGE/glslprogram.hpp b/include/YAGE/glslprogram.hpp index fd97c3a0..eaa19c52 100644 --- a/include/YAGE/glslprogram.hpp +++ b/include/YAGE/glslprogram.hpp @@ -13,9 +13,11 @@ #include -namespace yage { +namespace yage +{ -class GlslProgram { +class GlslProgram +{ private: /// compiled shader program id GLuint program_id_ = 0; @@ -24,27 +26,27 @@ private: 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(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