mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +00:00
Standardised indentation and added one extra piece of documentation.
This commit is contained in:
parent
20aa9e291d
commit
88e237b8de
@ -12,8 +12,14 @@
|
|||||||
#include "OpenGL.hpp"
|
#include "OpenGL.hpp"
|
||||||
|
|
||||||
namespace OpenGL {
|
namespace OpenGL {
|
||||||
class Shader {
|
|
||||||
public:
|
/*!
|
||||||
|
A @c Shader compiles and holds a shader object, based on a single
|
||||||
|
vertex program and a single fragment program. Attribute bindings
|
||||||
|
may be supplied if desired.
|
||||||
|
*/
|
||||||
|
class Shader {
|
||||||
|
public:
|
||||||
enum {
|
enum {
|
||||||
VertexShaderCompilationError,
|
VertexShaderCompilationError,
|
||||||
FragmentShaderCompilationError,
|
FragmentShaderCompilationError,
|
||||||
@ -54,10 +60,11 @@ namespace OpenGL {
|
|||||||
GLint get_uniform_location(const GLchar *name);
|
GLint get_uniform_location(const GLchar *name);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GLuint compile_shader(const char *source, GLenum type);
|
GLuint compile_shader(const char *source, GLenum type);
|
||||||
GLuint _shader_program;
|
GLuint _shader_program;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* Shader_hpp */
|
#endif /* Shader_hpp */
|
||||||
|
Loading…
Reference in New Issue
Block a user