OpenStructure
Public Member Functions | Static Public Member Functions
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

◆ Activate()

void Activate ( const String name)

◆ Compile()

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

◆ GetCurrentName()

String GetCurrentName ( ) const

◆ GetCurrentProgram()

GLuint GetCurrentProgram ( ) const

◆ Instance()

static Shader& Instance ( )
static

◆ IsActive()

bool IsActive ( ) const

◆ IsValid()

bool IsValid ( ) const

◆ Link()

void Link ( const std::string &  pr_name,
const std::string &  vs_code,
const std::string &  fs_code 
)

◆ PopProgram()

void PopProgram ( )

◆ PreGLInit()

void PreGLInit ( )

◆ PushProgram()

void PushProgram ( )

◆ Setup()

void Setup ( )

◆ UpdateState()

void UpdateState ( )

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