Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
BlamGLSLShaderUniform Class Reference

#include <uniforms.h>

+ Inheritance diagram for BlamGLSLShaderUniform:

Public Member Functions

 BlamGLSLShaderUniform (GLuint _program_id, std::string _name, BlamShaderUniformType _type)
 
BlamShaderUniformType GetType ()
 
std::string GetName ()
 
bool IsValid ()
 
void Prepare ()
 
virtual void Update ()
 

Protected Attributes

std::string name = ""
 
GLuint program_id = -1
 
GLint uniform = -1
 
bool valid = false
 

Constructor & Destructor Documentation

◆ BlamGLSLShaderUniform()

BlamGLSLShaderUniform::BlamGLSLShaderUniform ( GLuint  _program_id,
std::string  _name,
BlamShaderUniformType  _type 
)

Member Function Documentation

◆ GetName()

std::string BlamGLSLShaderUniform::GetName ( )

◆ GetType()

BlamShaderUniformType BlamGLSLShaderUniform::GetType ( )

◆ IsValid()

bool BlamGLSLShaderUniform::IsValid ( )

◆ Prepare()

void BlamGLSLShaderUniform::Prepare ( )

◆ Update()

void BlamGLSLShaderUniform::Update ( )
virtual

Reimplemented in BlamShaderUniform1F.

Member Data Documentation

◆ name

std::string BlamGLSLShaderUniform::name = ""
protected

◆ program_id

GLuint BlamGLSLShaderUniform::program_id = -1
protected

◆ uniform

GLint BlamGLSLShaderUniform::uniform = -1
protected

◆ valid

bool BlamGLSLShaderUniform::valid = false
protected

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