OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
Public Member Functions | List of all members
Engine::Shader Class Reference

The Shader class. More...

#include <shader.h>

Inheritance diagram for Engine::Shader:
Engine::IShader

Public Member Functions

void UseProgram (void)
 
void Unused (void)
 
void LinkProgram (void)
 
void AttachShader (uint shader)
 
void BindUniform1f (const char *location, float number)
 
void BindUniform1i (const char *location, int number)
 
void BindMatrix (const char *location, glm::mat4 matrix)
 
void BindVec3f (const char *location, const Vector3f &vector)
 
void BindVec3i (const char *location, const Vector3i &vector)
 
void BindVec4f (const char *location, const Vector4f &vector)
 
void BindVec4i (const char *location, const Vector4i &vector)
 
void BindTexture (Texture *texture, const char *location, int texture_unit)
 
void BindAttributeLocation (const char *location, int attribute_id)
 
void BindFragData (const char *location, int frag_position)
 
- Public Member Functions inherited from Engine::IShader
bool isUsing (void)
 
void setUsing (bool state)
 
void setLinked (bool state)
 
void setSource (bool state)
 
uint getProgram (void)
 
bool hasSource (void)
 
bool hasLinked (void)
 

Additional Inherited Members

- Protected Attributes inherited from Engine::IShader
bool mUsing
 
bool mSource
 
bool mLink
 
uint mProgram
 
std::vector< uint > mShaders
 

Detailed Description

The Shader class.


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