llcylinder.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLCYLINDER_H
00033 #define LL_LLCYLINDER_H
00034 
00035 //#include "stdtypes.h"
00036 //#include "llgl.h"
00037 
00038 //
00039 // Cylinders
00040 //
00041 const S32 CYLINDER_LEVELS_OF_DETAIL = 4;
00042 const S32 CYLINDER_FACES = 3;
00043 
00044 class LLCylinder
00045 {
00046 public:
00047         void prerender();
00048         void drawTop(S32 detail);
00049         void drawSide(S32 detail);
00050         void drawBottom(S32 detail);
00051         void cleanupGL();
00052 
00053         void render(F32 pixel_area);
00054         void renderface(F32 pixel_area, S32 face);
00055 };
00056 
00057 
00058 //
00059 // Cones
00060 //
00061 
00062 const S32 CONE_LOD_HIGHEST = 0;
00063 const S32 CONE_LEVELS_OF_DETAIL = 4;
00064 const S32 CONE_FACES = 2;
00065 
00066 class LLCone
00067 {       
00068 public:
00069         void prerender();
00070         void cleanupGL();
00071         void drawSide(S32 detail);
00072         void drawBottom(S32 detail);
00073         void render(S32 level_of_detail);
00074         void renderface(S32 level_of_detail, S32 face);
00075 };
00076 
00077 extern LLCylinder gCylinder;
00078 extern LLCone gCone;
00079 #endif

Generated on Thu Jul 1 06:08:23 2010 for Second Life Viewer by  doxygen 1.4.7