]> Pileus Git - grits/blobdiff - src/objects/grits-object.h
Store GritsViewer references in GritsObjects
[grits] / src / objects / grits-object.h
index b8a91a6d3fce707441196cd46bda5d647e4ec393..7ed49aa53d0df15f866913d44ba0a12f70e778f8 100644 (file)
 typedef struct _GritsObject      GritsObject;
 typedef struct _GritsObjectClass GritsObjectClass;
 
+#include "grits-opengl.h"
 struct _GritsObject {
-       GObject    parent_instance;
-       GritsPoint center;
-       gboolean   hidden;
-       gdouble    lod;
+       GObject      parent_instance;
+       GritsViewer *viewer; // The viewer the object was added to
+       gpointer     ref;    // Reference for objects that have been added
+       GritsPoint   center; // Center of the object
+       gboolean     hidden; // If true, the object will not be drawn
+       gdouble      lod;    // Level of detail, used to hide small objects
 };
 
-#include "grits-opengl.h"
 struct _GritsObjectClass {
        GObjectClass parent_class;