~glmark2-dev/glmark2/libmatrix-util

« back to all changes in this revision

Viewing changes to shader.h

  • Committer: Alexandros Frantzis
  • Date: 2010-07-07 10:32:18 UTC
  • Revision ID: git-v1:d2683504fc3cc84e7f3aefd917147037706cecf0
Initial release of original OpenGL code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _SHADER_H
 
2
#define _SHADER_H
 
3
 
 
4
#include "oglsdl.h"
 
5
 
 
6
#include <fcntl.h>
 
7
#include <unistd.h>
 
8
 
 
9
class Shader
 
10
{
 
11
public:
 
12
    ~Shader();
 
13
    void load(const char *pVertexShaderFileName, const char *pFragmentShaderFileName);
 
14
    void remove();
 
15
    void use();
 
16
    
 
17
    GLuint mVertexShader;
 
18
    GLuint mFragmentShader;
 
19
    int mShaderProgram;
 
20
};
 
21
 
 
22
#endif