GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Data Fields | Private Attributes
radix::Shader Class Reference

#include <external/RadixEngine/include/radix/data/shader/Shader.hpp>

Public Types

enum  Type { Vertex, Fragment, Geometry }
 

Public Member Functions

 Shader (unsigned int handle)
 
void bind () const
 
void release () const
 
int uni (const std::string &)
 
int att (const std::string &)
 

Data Fields

unsigned int handle
 

Private Attributes

std::map< std::string, int > locationMap
 

Member Enumeration Documentation

Enumerator
Vertex 
Fragment 
Geometry 

Constructor & Destructor Documentation

radix::Shader::Shader ( unsigned int  handle)
inline

Member Function Documentation

int radix::Shader::att ( const std::string &  name)
void radix::Shader::bind ( ) const
void radix::Shader::release ( ) const
int radix::Shader::uni ( const std::string &  name)

Field Documentation

unsigned int radix::Shader::handle
std::map<std::string, int> radix::Shader::locationMap
private

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