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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2013-09-17 18:13:39 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:02:43 +0300
commit879046aadd167c3963ec76f4b1c6e9c533267bbc (patch)
treeb1d3f59cd1833eebdb6ca527fede8eb01dadf22a /drape/gpu_program.hpp
parent5bb03b18ebc30b14287ae101e12dd02f1fdc686c (diff)
drape basics
Diffstat (limited to 'drape/gpu_program.hpp')
-rw-r--r--drape/gpu_program.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/drape/gpu_program.hpp b/drape/gpu_program.hpp
new file mode 100644
index 0000000000..4de6ef2a58
--- /dev/null
+++ b/drape/gpu_program.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include "shader_reference.hpp"
+#include "pointers.hpp"
+
+#include "../std/string.hpp"
+
+class GpuProgram
+{
+public:
+ GpuProgram(WeakPointer<ShaderReference> vertexShader,
+ WeakPointer<ShaderReference> fragmentShader);
+ ~GpuProgram();
+
+ void Bind();
+ void Unbind();
+
+ int8_t GetAttributeLocation(const string & attributeName) const;
+ int8_t GetUniformLocation(const string & uniformName) const;
+ void ActivateSampler(uint8_t textureBlock, const string & samplerName);
+
+private:
+ uint32_t m_programID;
+};