Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 532 Bytes

File metadata and controls

35 lines (27 loc) · 532 Bytes

New Shader System

//BASE
//"virtual" 
class Shader {

protected:
    enum class ShaderType {
        NONE        = -1,
        VERTEX      =  0,
        FRAGMENT    =  1,
        GEOMETRY    =  2,
        TESSELATION =  3,
        COMPUTE     =  4
    };

    ShaderType type;
    std::string source;
    unsigned int shaderID;

    Shader();
    virtual ~Shader();

};

//DERIVED
class VertexShader : public Shader {
    VertexShader();
    ~VertexShader();

    CompileShader();
}