#include "lighting.h" /* Returns a fresh polygon */ Polygon* create_polygon(void) { return calloc(1, sizeof(Polygon)); } /* Cleans up all data structures in a polygon */ void destroy_polygon(Polygon* poly) { free(poly->vtx); free(poly); }