aboutsummaryrefslogtreecommitdiff
path: root/src/RenderBackend/OpenGL/ShaderVec.cpp
blob: 0dfb4c69411c5f613c066f052033c76d1b22eab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "../../../include/RenderBackend/OpenGL/ShaderVec.hpp"
#include "../../../include/RenderBackend/OpenGL/VertexShader.hpp"
#include "../../../include/RenderBackend/OpenGL/PixelShader.hpp"

using namespace std;

namespace amalgine
{
    const string& ShaderInputVec2::getName() const
    {
        return vertexShader->getInputAttributeName(attributeIndex);
    }
    
    const string& ShaderOutputVec4::getName() const
    {
        return pixelShader->getOutputAttributeName(attributeIndex);
    }
    
    void ShaderOutputVec4::operator=(const ShaderVec4 &shaderVec4)
    {
        pixelShader->assign(*this, shaderVec4);
    }
}