16#include "TGLIncludes.h"
58 if (lod >= 100) off = 0;
59 else if (lod < 10) off = lod / 2;
60 else off = lod / 10 + 4;
78 lod = 10 *
static_cast<Int_t>(quant);
83 lod = 2 *
static_cast<Int_t>(quant);
85 return static_cast<Short_t>(lod);
94 Info(
"TGLSphere::DirectDraw",
"this %zd (class %s) LOD %d", (
size_t)
this,
IsA()->GetName(), rnrCtx.
ShapeLOD());
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
short Short_t
Signed Short integer 2 bytes (short).
double Double_t
Double 8 bytes.
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.
TGLLogicalShape(const TGLLogicalShape &)=delete
Int_t fDLSize
! display-list size for different LODs
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
GLUquadric * GetGluQuadric()
Initialize fQuadric.
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.