A class representing a shader.
More...
#include <Shader.hpp>
|
enum | Type { Vertex,
Fragment
} |
|
A class representing a shader.
An enum defining the shader type
lm::Shader::Shader |
( |
const char * |
path, |
|
|
Type |
type, |
|
|
bool |
resource = true |
|
) |
| |
Construct a shader from it's type and path
- Parameters
-
path | The shader path |
type | The shader type |
resource | If true, path is relative to the resource path |
GLuint lm::Shader::get |
( |
| ) |
const |
|
inline |
Get the raw shader
- Returns
- The raw shader
The documentation for this class was generated from the following file: