SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::GlslShader Class Reference

This class implements a basic shader functions. More...

#include <GlslShader.h>

Public Member Functions

 GlslShader (char *vert, char *frag)
 Constructor.
 
void setActive (bool)
 Activates and Deactivates the shader.
 
GLint getUniformLocation (const std::string &theVar)
 Return the location of the uniform variable.
 
GLint getAttribLocation (const std::string &theVar)
 Return the location of the attribute variable.
 

Static Public Member Functions

static void init ()
 Initializes the shared program.
 
static bool isReady (void)
 Verifies if the shader is ready.
 

Detailed Description

This class implements a basic shader functions.

Constructor & Destructor Documentation

scv::GlslShader::GlslShader ( char *  vert,
char *  frag 
)

Constructor.

Parameters
vertFile path of the vertice file code.
fragFile path of the fragment file code.

Member Function Documentation

GLint scv::GlslShader::getAttribLocation ( const std::string &  theVar)

Return the location of the attribute variable.

Parameters
theVarVariable.
GLint scv::GlslShader::getUniformLocation ( const std::string &  theVar)

Return the location of the uniform variable.

Parameters
theVarVariable.
void scv::GlslShader::init ( )
static

Initializes the shared program.

static bool scv::GlslShader::isReady ( void  )
inlinestatic

Verifies if the shader is ready.

void scv::GlslShader::setActive ( bool  active)

Activates and Deactivates the shader.


The documentation for this class was generated from the following files: