#include "TGLSphere.h"
#include "TGLDrawFlags.h"
#include "TGLIncludes.h"
#include "TBuffer3D.h"
#include "TBuffer3DTypes.h"
#include "TClass.h"
#include "TError.h"
ClassImp(TGLSphere)
TGLSphere::TGLSphere(const TBuffer3DSphere &buffer) :
TGLLogicalShape(buffer)
{
fRadius = buffer.fRadiusOuter;
}
void TGLSphere::DirectDraw(const TGLDrawFlags & flags) const
{
if (gDebug > 4) {
Info("TGLSphere::DirectDraw", "this %d (class %s) LOD %d", this, IsA()->GetName(), flags.LOD());
}
UInt_t divisions = flags.LOD();
if (divisions < 4) {
divisions = 4;
}
gluSphere(fgQuad.Get(),fRadius, divisions, divisions);
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.