blob: da74e546440fb7727cd5c57a48e25318eb20b3eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "drape/glfunctions.hpp"
#include "std/string.hpp"
#include "std/cstdint.hpp"
namespace dp
{
class Shader
{
public:
enum Type
{
VertexShader,
FragmentShader
};
Shader(string const & shaderSource, string const & defines, Type type);
~Shader();
int GetID() const;
private:
uint32_t m_glID;
};
void PreprocessShaderSource(string & src);
} // namespace dp
|