All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Luminous::ShaderGL Class Reference

This class represents the Shader object in GPU memory. More...

#include <Luminous/ProgramGL.hpp>

Public Member Functions

LUMINOUS_API bool compile (const Shader &shader)
 Compile the shader object. More...
 
LUMINOUS_API GLuint handle () const
 Get the raw OpenGL handle for the shader. More...
 
LUMINOUS_API ShaderGLoperator= (ShaderGL &&shader)
 Move assignment operator. More...
 
LUMINOUS_API ShaderGL ()
 Constructor.
 
LUMINOUS_API ShaderGL (ShaderGL &&shader)
 Move constructor. More...
 
LUMINOUS_API ~ShaderGL ()
 Destructor.
 

Detailed Description

This class represents the Shader object in GPU memory.

Constructor & Destructor Documentation

LUMINOUS_API Luminous::ShaderGL::ShaderGL ( ShaderGL &&  shader)

Move constructor.

Parameters
shadershader to move

Member Function Documentation

LUMINOUS_API bool Luminous::ShaderGL::compile ( const Shader shader)

Compile the shader object.

If there are errors, they are printed to stderr.

Parameters
shadershader object on CPU
Returns
true if compilation was successful; otherwise false
LUMINOUS_API GLuint Luminous::ShaderGL::handle ( ) const
inline

Get the raw OpenGL handle for the shader.

Returns
object handle
LUMINOUS_API ShaderGL& Luminous::ShaderGL::operator= ( ShaderGL &&  shader)

Move assignment operator.

Parameters
shadershader to move