Shader Class Reference

#include <shader.hh>

Public Member Functions

void PreGLInit ()
void Setup ()
void Activate (const String &name)
bool IsValid () const
bool IsActive () const
GLuint GetCurrentProgram () const
String GetCurrentName () const
void PushProgram ()
void PopProgram ()
void UpdateState ()
void Link (const std::string &pr_name, const std::string &vs_code, const std::string &fs_code)

Static Public Member Functions

static ShaderInstance ()
static bool Compile (const std::string &shader_name, const std::string &shader_code, GLenum shader_type, GLuint &shader_id)

Detailed Description

Definition at line 38 of file shader.hh.


Member Function Documentation

void Activate ( const String name  ) 
static bool Compile ( const std::string &  shader_name,
const std::string &  shader_code,
GLenum  shader_type,
GLuint &  shader_id 
) [static]
String GetCurrentName (  )  const
GLuint GetCurrentProgram (  )  const
static Shader& Instance (  )  [static]
bool IsActive (  )  const
bool IsValid (  )  const
void Link ( const std::string &  pr_name,
const std::string &  vs_code,
const std::string &  fs_code 
)
void PopProgram (  ) 
void PreGLInit (  ) 
void PushProgram (  ) 
void Setup (  ) 
void UpdateState (  ) 

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1