summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics.h b/graphics.h
index 9a46914..612ff48 100644
--- a/graphics.h
+++ b/graphics.h
@@ -154,8 +154,8 @@ struct SUparams
Framebuf *fb;
Memimage *frag;
Renderjob *job;
-
Entity *entity;
+ OBJElem **eb, **ee;
uvlong uni_time;
@@ -177,11 +177,11 @@ struct Renderer
struct Renderjob
{
+ Ref;
Framebuf *fb;
Scene *scene;
Shadertab *shaders;
Channel *donec;
- ulong nrem; /* remaining entities to process */
Renderjob *next;
};
@@ -190,15 +190,14 @@ struct Framebuf
{
Memimage *cb; /* color buffer */
double *zbuf; /* z/depth buffer */
- Lock zbuflk;
Rectangle r;
};
struct Framebufctl
{
+ Lock;
Framebuf *fb[2]; /* double buffering */
uint idx; /* front buffer index */
- Lock swplk;
void (*draw)(Framebufctl*, Image*);
void (*memdraw)(Framebufctl*, Memimage*);