forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TGLQuadric.h
47 lines (35 loc) · 1.56 KB
/
TGLQuadric.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @(#)root/gl:$Id$
// Author: Richard Maunder 16/09/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TGLQuadric
#define ROOT_TGLQuadric
#include "Rtypes.h"
//////////////////////////////////////////////////////////////////////////
// //
// TGLOutput //
// //
// Wrapper class for GLU quadric shape drawing object. Lazy creation of //
// internal GLU raw quadric on first call to TGLQuadric::Get() //
//////////////////////////////////////////////////////////////////////////
class GLUquadric;
class TGLQuadric
{
private:
GLUquadric * fQuad;
protected:
TGLQuadric(const TGLQuadric& glq) : fQuad(glq.fQuad) { }
TGLQuadric& operator=(const TGLQuadric& glq)
{ if(this!=&glq) fQuad=glq.fQuad; return *this; }
public:
TGLQuadric();
virtual ~TGLQuadric(); // ClassDef introduces virtuals
GLUquadric * Get();
ClassDef(TGLQuadric,0) // GL quadric object
};
#endif