From bfd21732b35a3856b1f72c826816c2857710fcb3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 21 Dec 2017 22:52:12 +0100 Subject: Added shader program --- include/RenderBackend/OpenGL/PixelShader.hpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'include/RenderBackend/OpenGL/PixelShader.hpp') diff --git a/include/RenderBackend/OpenGL/PixelShader.hpp b/include/RenderBackend/OpenGL/PixelShader.hpp index 3d33155..b869a8f 100644 --- a/include/RenderBackend/OpenGL/PixelShader.hpp +++ b/include/RenderBackend/OpenGL/PixelShader.hpp @@ -45,27 +45,15 @@ namespace amalgine public: PixelShader(); - const std::string& getOutputAttributeName(i32 attributeIndex); - ShaderOutputVec4 defineOutputVec4(const std::string &name); void defineMain(PixelShaderMainFunc mainFunc); void assign(const ShaderOutputVec4 &lhsVariable, const ShaderVec4 &rhsVariable); - std::string build(); + std::string build() const; private: void writeHeader(const std::string &code); void writeBody(const std::string &code); - - /* - * Throws PixelShaderTooManyAttributes if too many pixel attributes are defined for the platform. - * Throws PixelShaderAttributeAlreadyDefined if a pixel attribute with the same name has already been defined. - */ - i32 defineOutputVariable(const std::string &variableName, const char *typeName); private: std::string header; std::string body; - int locationCounter; - i32 maxPixelAttribs; // Could make this static - std::unordered_map pixelAttributes; - std::vector pixelAttributeNames; bool mainFuncDefined; }; } -- cgit v1.2.3