projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some descriptor functions in vkutil - wip
[demo]
/
src
/
shader.h
diff --git
a/src/shader.h
b/src/shader.h
index
5a79b7f
..
491eea8
100644
(file)
--- a/
src/shader.h
+++ b/
src/shader.h
@@
-8,11
+8,9
@@
#include <gmath/gmath.h>
#include <gmath/gmath.h>
-/*
- Shader class
-*/
+class Texture;
-enum SType {
+enum ShaderType {
SDR_UNKNOWN,
SDR_VERTEX,
SDR_FRAGMENT
SDR_UNKNOWN,
SDR_VERTEX,
SDR_FRAGMENT
@@
-20,19
+18,18
@@
enum SType {
class Shader {
protected:
class Shader {
protected:
- SType type;
+ ShaderType type;
std::string name;
virtual bool create(char *buf, unsigned int bsz, const char *fname) = 0;
public:
std::string name;
virtual bool create(char *buf, unsigned int bsz, const char *fname) = 0;
public:
-
Shader();
virtual ~Shader() = 0;
Shader();
virtual ~Shader() = 0;
- virtual bool load(const char *fname, SType type);
+ virtual bool load(const char *fname, ShaderType type);
virtual void destroy() = 0;
virtual void destroy() = 0;
- virtual SType get_type();
+ virtual ShaderType get_type();
};
/* Shader Program */
};
/* Shader Program */