source: trunk/src/shader.h @ 664

Last change on this file since 664 was 659, checked in by sam, 10 years ago

Try to factor all the recent GLSL stuff in the new Shader class.

File size: 740 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Shader class
13// --------------
14//
15
16#if !defined __DH_SHADER_H__
17#define __DH_SHADER_H__
18
19class ShaderData;
20
21class Shader
22{
23public:
24    Shader(char const *vert, char const *frag);
25    ~Shader();
26
27    int GetAttribLocation(char const *attr) const;
28    int GetUniformLocation(char const *uni) const;
29
30    void Bind() const;
31
32private:
33    ShaderData *data;
34};
35
36#endif // __DH_SHADER_H__
37
Note: See TracBrowser for help on using the repository browser.