Lums
Public Types | Public Member Functions | Friends | List of all members
lm::Shader Class Reference

A class representing a shader. More...

#include <Shader.hpp>

Public Types

enum  Type { Vertex, Fragment }
 

Public Member Functions

 Shader (const char *path, Type type, bool resource=true)
 
GLuint get () const
 
 ~Shader ()
 

Friends

class ShaderProgram
 

Detailed Description

A class representing a shader.

Member Enumeration Documentation

An enum defining the shader type

Constructor & Destructor Documentation

lm::Shader::Shader ( const char *  path,
Type  type,
bool  resource = true 
)

Construct a shader from it's type and path

Parameters
pathThe shader path
typeThe shader type
resourceIf true, path is relative to the resource path
lm::Shader::~Shader ( )

Shader dtor

Member Function Documentation

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: