00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "PolyPrimitive.h"
00019 #include "TextPrimitive.h"
00020 #include "NURBSPrimitive.h"
00021
00022 #ifndef GRAPHICS_UTILS
00023 #define GRAPHICS_UTILS
00024
00025 namespace Fluxus
00026 {
00027
00028 void MakeCube(PolyPrimitive *p, float size = 1);
00029 void MakeCylinder(PolyPrimitive *p, float height, float radius, int hsegments, int rsegments);
00030 void MakeSphere(PolyPrimitive *p, float radius, int hsegments, int rsegments);
00031 void MakeTorus(PolyPrimitive *p, float innerradius, float outerradius, int hsegments, int rsegments);
00032 void MakePlane(PolyPrimitive *p);
00033 void MakePlane(PolyPrimitive *p, int xsegs, int ysegs);
00034 void MakeNURBSSphere(NURBSPrimitive *p, float radius, int hsegments, int rsegments);
00035 void MakeNURBSPlane(NURBSPrimitive *p, int usegments, int vsegments);
00036
00037 }
00038
00039 #endif