16#include "TGLIncludes.h" 
   59   if      (lod >= 100) off = 0;
 
   60   else if (lod <  10)  off = lod / 2;
 
   61   else                 off = lod / 10 + 4;
 
   79      lod            = 10  *   
static_cast<Int_t>(quant);
 
   84      lod            = 2   *   
static_cast<Int_t>(quant);
 
   86   return static_cast<Short_t>(lod);
 
   95      Info(
"TGLSphere::DirectDraw", 
"this %zd (class %s) LOD %d", (
size_t)
this, 
IsA()->GetName(), rnrCtx.
ShapeLOD());
 
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
 
Sphere description class - see TBuffer3DTypes for producer classes Supports hollow and cut spheres.
 
Abstract logical shape - a GL 'drawable' - base for all shapes - faceset sphere etc.
 
Int_t fDLSize
display-list id base
 
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
 
GLUquadric * GetGluQuadric()
Initialize fQuadric.
 
Implements a native ROOT-GL sphere that can be rendered at different levels of detail.
 
TGLSphere(const TBuffer3DSphere &buffer)
Default ctor.
 
virtual TClass * IsA() const
 
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Debug tracing.
 
virtual UInt_t DLOffset(Short_t lod) const
Return display-list offset for given LOD.
 
virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const
Factor in scene/viewer LOD and quantize.