16#include "TGLIncludes.h"
59 if (
lod >= 100) off = 0;
60 else if (
lod < 10) off =
lod / 2;
61 else off =
lod / 10 + 4;
95 Info(
"TGLSphere::DirectDraw",
"this %zd (class %s) LOD %d", (
size_t)
this,
IsA()->GetName(),
rnrCtx.ShapeLOD());
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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...
Implements a native ROOT-GL sphere that can be rendered at different levels of detail.
UInt_t DLOffset(Short_t lod) const override
Return display-list offset for given LOD.
TClass * IsA() const override
TGLSphere(const TBuffer3DSphere &buffer)
Default ctor.
Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const override
Factor in scene/viewer LOD and quantize.
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Debug tracing.