reprap: Deleted example board
[simavr] / examples / shared / libc3 / src / c3context.h
index aac6be8..fc3c4d1 100644 (file)
 #include "c3camera.h"
 
 enum {
-       C3_CONTEXT_VIEW_EYE = 0,
+       C3_CONTEXT_VIEW_NONE = 0,
+       C3_CONTEXT_VIEW_EYE,
        C3_CONTEXT_VIEW_LIGHT
 };
 
 typedef struct c3context_view_t {
-       int                     type : 4,       // C3_CONTEXT_VIEW_EYE...
-                               dirty : 1;
-       c3vec2          size;                                   // in pixels. for fbo/textures/window
+       int                     type : 4,                       // C3_CONTEXT_VIEW_EYE...
+                               dirty : 1,
+                               index : 4;                      // index in context array
+       c3apiobject_t   bid;                    // buffer id (fbo, texture...)
+       c3vec2          size;                           // in pixels. for fbo/textures/window
        c3cam_t         cam;
-       c3mat4          projection;                             // projection matrix
+       c3mat4          projection;                     // projection matrix
 
        c3geometry_array_t      projected;
        struct {
@@ -89,7 +92,7 @@ c3context_dispose(
                c3context_p c);
 
 //! Reproject geometry for dirty objects
-void
+int
 c3context_project(
                c3context_p c);
 //! Draws the context