|
Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
|
#include <shader.h>
Public Member Functions | |
| Shader ()=default | |
| Shader (const std::string &code, ShaderType type) | |
| Constructs a shader from the code provided. More... | |
| void | operator() (const std::string &code, ShaderType type) |
| Constructs a shader from the code provided. More... | |
| ~Shader () | |
| AssetType | GetAssetType () override |
Public Member Functions inherited from cqsp::asset::Asset | |
| virtual | ~Asset ()=default |
| virtual void | PostLoad (AssetManager &) |
Public Attributes | |
| ShaderType | shader_type = ShaderType::NONE |
| unsigned int | id |
| Id of the shader. More... | |
Public Attributes inherited from cqsp::asset::Asset | |
| std::string | path |
| int | accessed = 0 |
Private Member Functions | |
| Shader (const Shader &)=default | |
An opengl shader.
Do note that this is distinct from a shader program, and this has to be combined with either a vertex or fragmenet shader counterpart to be used in ShaderProgram
|
default |
| cqsp::asset::Shader::Shader | ( | const std::string & | code, |
| ShaderType | type | ||
| ) |
Constructs a shader from the code provided.
| cqsp::asset::Shader::~Shader | ( | ) |
|
explicitprivatedefault |
|
inlineoverridevirtual |
Implements cqsp::asset::Asset.
| void cqsp::asset::Shader::operator() | ( | const std::string & | code, |
| ShaderType | type | ||
| ) |
Constructs a shader from the code provided.
| unsigned int cqsp::asset::Shader::id |
Id of the shader.
| ShaderType cqsp::asset::Shader::shader_type = ShaderType::NONE |