Files
MapLibreParticleLab/include/llmr/renderer/shader.hpp
Konstantin Käfer 528eaf475e emscripten support
2014-01-07 16:52:23 +01:00

23 lines
365 B
C++

#ifndef LLMR_RENDERER_SHADER
#define LLMR_RENDERER_SHADER
#include <vector>
namespace llmr {
class Shader {
public:
Shader(const char *vertex, const char *fragment);
~Shader();
bool valid;
uint32_t program;
std::vector<uint32_t> attributes;
private:
bool compileShader(uint32_t *shader, uint32_t type, const char *source);
};
}
#endif