Shader Tool
Small shader visualiser.
st::Shader Class Reference

Data class that contains the code of a shader. More...

#include <Shader.hpp>

Public Member Functions

 Shader ()=default
 
 Shader (string title, string path, string shader_text)
 Creates a new shader. More...
 
string getTitle ()
 
string getPath ()
 
shared_ptr< string > getCode ()
 
void setPath (string _path)
 

Private Attributes

string title
 
string path
 
string shader_text
 

Detailed Description

Data class that contains the code of a shader.

Constructor & Destructor Documentation

◆ Shader() [1/2]

st::Shader::Shader ( )
default

◆ Shader() [2/2]

st::Shader::Shader ( string  title,
string  path,
string  shader_text 
)
inline

Creates a new shader.

Parameters
tileShader name.
pathPath to the shader file.
shader_textCode of the shader.

Member Function Documentation

◆ getCode()

shared_ptr<string> st::Shader::getCode ( )
inline

◆ getPath()

string st::Shader::getPath ( )
inline

◆ getTitle()

string st::Shader::getTitle ( )
inline

◆ setPath()

void st::Shader::setPath ( string  _path)
inline

Member Data Documentation

◆ path

string st::Shader::path
private

◆ shader_text

string st::Shader::shader_text
private

◆ title

string st::Shader::title
private

The documentation for this class was generated from the following file: