diff -r d6cbf21af8fb -r c51941e590b6 src/primitives.h --- a/src/primitives.h Thu Oct 03 21:48:11 2013 +0300 +++ b/src/primitives.h Sat Oct 05 12:51:13 2013 +0300 @@ -24,6 +24,7 @@ #include #include +class LDFile; class Ui_MakePrimUI; class PrimitiveCategory; struct Primitive @@ -103,6 +104,10 @@ void hiResToggled (bool on); }; -void generatePrimitive(); +LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num); + +// Gets a primitive by the given specs. If the primitive cannot be found, it will +// be automatically generated. +LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num); #endif // PRIMITIVES_H