NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
Shader.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <glm/glm.hpp>
8
#include <memory>
9
#include <string>
10
11
namespace
NoJob
12
{
13
class
Shader
14
{
15
public
:
16
virtual
~Shader
() =
default
;
17
18
virtual
void
Bind
()
const
= 0;
19
virtual
void
Unbind
()
const
= 0;
20
21
virtual
void
SetMat4
(
22
const
std::string& name,
23
const
glm::mat4& value) = 0;
24
25
virtual
void
SetInt
(
26
const
std::string& name,
27
int
value) = 0;
28
29
virtual
void
SetFloat
(
30
const
std::string& name,
31
float
value) = 0;
32
33
virtual
void
SetFloat3
(
34
const
std::string& name,
35
const
glm::vec3& value) = 0;
36
37
virtual
void
SetFloat4
(
38
const
std::string& name,
39
const
glm::vec4& value) = 0;
40
41
static
std::shared_ptr<Shader>
Create
(
42
const
std::string& vertexSource,
43
const
std::string& fragmentSource);
44
};
45
}
NoJob::Shader
Definition
Shader.h:14
NoJob::Shader::Unbind
virtual void Unbind() const =0
NoJob::Shader::SetMat4
virtual void SetMat4(const std::string &name, const glm::mat4 &value)=0
NoJob::Shader::~Shader
virtual ~Shader()=default
NoJob::Shader::Bind
virtual void Bind() const =0
NoJob::Shader::SetFloat3
virtual void SetFloat3(const std::string &name, const glm::vec3 &value)=0
NoJob::Shader::Create
static std::shared_ptr< Shader > Create(const std::string &vertexSource, const std::string &fragmentSource)
Definition
Shader.cpp:8
NoJob::Shader::SetInt
virtual void SetInt(const std::string &name, int value)=0
NoJob::Shader::SetFloat4
virtual void SetFloat4(const std::string &name, const glm::vec4 &value)=0
NoJob::Shader::SetFloat
virtual void SetFloat(const std::string &name, float value)=0
NoJob
Definition
BTActionNode.h:13
Engine
Renderer
Shader.h
Generated by
1.18.0