VAPOR3 3.9.4
Shader.h
Go to the documentation of this file.
1#pragma once
2
3#include <vapor/MyBase.h>
4#include <string>
5
6namespace VAPoR {
7
15
17 unsigned int _id;
18 int _successStatus;
19 bool _compiled;
20 unsigned int _type;
21 std::string _name;
22
23public:
29 Shader(unsigned int type);
31
37 int CompileFromSource(const std::string &source);
38
40 std::string GetLog() const;
41
42 unsigned int GetID() const;
43 unsigned int GetType() const;
45};
46
47} // namespace VAPoR
Provides a C++ interface to the OpenGL shader construct.
Definition: Shader.h:16
Shader(unsigned int type)
unsigned int GetID() const
bool WasCompilationSuccessful() const
std::string GetLog() const
Calls glGetShaderInfoLog.
unsigned int GetType() const
int CompileFromSource(const std::string &source)
Wasp base class.
Definition: MyBase.h:67
#define RENDER_API
Definition: common.h:78