From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- Magic2/Primitives.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Magic2/Primitives.h (limited to 'Magic2/Primitives.h') diff --git a/Magic2/Primitives.h b/Magic2/Primitives.h new file mode 100644 index 0000000..2da16fe --- /dev/null +++ b/Magic2/Primitives.h @@ -0,0 +1,55 @@ +/* Project Magic 2.0 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Magic.exe + FILE: Primitives.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Commands for adding basic geometric primitives to a mesh +*/ + +#ifndef Primitives_h +#define Primitives_h + +#include "MagicDoc.h" +#include "Command.h" +#include "Polygon.h" +#include "Solid.h" +#include "Video.h" +#include "List.h" + +// +--------------------------------------------------------------------+ + +class Selection; +class ModelView; + +// +--------------------------------------------------------------------+ + +class CreatePolyCommand : public Command +{ +public: + CreatePolyCommand(MagicDoc* doc, + int nsides, + double lx, + double ly, + double lz); + virtual ~CreatePolyCommand(); + + virtual void Do(); + virtual void Undo(); + +private: + int nsides; + double lx; + double ly; + double lz; +}; + +// +--------------------------------------------------------------------+ + +#endif Primitives_h + -- cgit v1.1