Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shader.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae4253bff7a2fef9a7b96d0b2d8edb4edea5f74f (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
#pragma once

#include <cstdint>
#include <string>

namespace dp
{
class Shader
{
public:
  enum class Type
  {
    VertexShader,
    FragmentShader
  };

  Shader(std::string const & shaderName, std::string const & shaderSource,
         std::string const & defines, Type type);
  ~Shader();

  uint32_t GetID() const;

private:
  std::string const m_shaderName;
  uint32_t m_glID;
};
}  // namespace dp