+/*
+ * Create a new light on the heap.
+ */
+INLINE_MAYBE
+light_t* light_alloc(vec_t position, color_t diffuse, color_t specular)
+{
+ light_t* l = (light_t*)mem_alloc(sizeof(light_t));
+ light_init(l, position, diffuse, specular);
+ return l;
+}
+
+INLINE_MAYBE
+light_t* light_copy(light_t l)
+{
+ light_t* n = (light_t*)mem_alloc(sizeof(light_t));
+ memcpy(n, &l, sizeof(light_t));
+ return n;
+}
+
+