aboutsummaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics.h b/graphics.h
index 85b60ae..94ce2ea 100644
--- a/graphics.h
+++ b/graphics.h
@@ -139,8 +139,6 @@ struct VSparams
struct FSparams
{
SUparams *su;
- Memimage *frag;
- uchar *cbuf;
Point p;
Vertex v; /* only for the attributes (varyings) */
};
@@ -150,6 +148,7 @@ struct SUparams
{
Framebuf *fb;
int id;
+ Memimage *frag;
Channel *donec;
/* TODO replace with a Scene */
@@ -158,14 +157,14 @@ struct SUparams
uvlong uni_time;
Point3 (*vshader)(VSparams*);
- Memimage *(*fshader)(FSparams*);
+ Color (*fshader)(FSparams*);
};
struct Shader
{
char *name;
- Point3 (*vshader)(VSparams*); /* vertex shader */
- Memimage *(*fshader)(FSparams*); /* fragment shader */
+ Point3 (*vshader)(VSparams*); /* vertex shader */
+ Color (*fshader)(FSparams*); /* fragment shader */
};
struct Framebuf