projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick backup of changes:
[demo]
/
src
/
shader.h
diff --git
a/src/shader.h
b/src/shader.h
index
1472fb3
..
28832f6
100644
(file)
--- a/
src/shader.h
+++ b/
src/shader.h
@@
-33,6
+33,11
@@
public:
virtual void add_shader(Shader *sdr);
virtual bool link() = 0;
virtual bool load(const char *vfname, const char *ffname) = 0;
virtual void add_shader(Shader *sdr);
virtual bool link() = 0;
virtual bool load(const char *vfname, const char *ffname) = 0;
+ virtual void use() = 0;
+
+ /* THIS PART IS GOING TO BE CHANGED: on vulkan we set the uniforms
+ using descriptor sets. The current design is suitable for OpenGL and
+ it has to become more generic to work with both APIs later. */
};
#endif // SHADER_H_
};
#endif // SHADER_H_