aboutsummaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics.h b/graphics.h
index e98ae9a..1e04c13 100644
--- a/graphics.h
+++ b/graphics.h
@@ -39,6 +39,7 @@ struct Vertex
Color c; /* shading color */
Point2 uv; /* texture coordinate */
+ /* TODO these attributes should be replaced by a hash table */
double intensity;
Point3 pos;
};
@@ -147,7 +148,8 @@ struct Framebufctl
uint idx; /* front buffer index */
Lock swplk;
- void (*draw)(Framebufctl*, Memimage*);
+ void (*draw)(Framebufctl*, Image*);
+ void (*memdraw)(Framebufctl*, Memimage*);
void (*swap)(Framebufctl*);
void (*reset)(Framebufctl*);
};
@@ -156,6 +158,9 @@ struct Viewport
{
RFrame;
Framebufctl *fbctl;
+
+ void (*draw)(Viewport*, Image*);
+ void (*memdraw)(Viewport*, Memimage*);
};
struct Camera