altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
Shader Class Referenceabstract

#include <graphics.h>

Inheritance diagram for Shader:
Inheritance graph
[legend]

Public Member Functions

 Shader ()
 
int init (Graphics *gfx, char *vertex_file, char *geometry_file, char *fragment_file)
 
virtual void Select ()
 
void destroy ()
 
virtual ~Shader ()
 
virtual void prelink ()=0
 

Protected Attributes

const char * vertex_src
 
const char * geometry_src
 
const char * fragment_src
 
int program_handle
 
int vertex_handle
 
int geometry_handle
 
int fragment_handle
 

Constructor & Destructor Documentation

Shader::Shader ( )
virtual Shader::~Shader ( )
virtual

Member Function Documentation

void Shader::destroy ( )

Here is the caller graph for this function:

int Shader::init ( Graphics gfx,
char *  vertex_file,
char *  geometry_file,
char *  fragment_file 
)
virtual void Shader::prelink ( )
pure virtual
virtual void Shader::Select ( )
virtual

Reimplemented in mLight2.

Here is the caller graph for this function:

Member Data Documentation

int Shader::fragment_handle
protected
const char * Shader::fragment_src
protected
int Shader::geometry_handle
protected
const char * Shader::geometry_src
protected
int Shader::program_handle
protected
int Shader::vertex_handle
protected
const char* Shader::vertex_src
protected

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