This file is indexed.

/usr/include/root/TGLFormat.h is in libroot-graf3d-gl-dev 5.34.14-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// @(#)root/gl:$Id$
// Author:  Timur Pocheptsov, Jun 2007

/*************************************************************************
 * Copyright (C) 1995-2004, 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_TGLFormat
#define ROOT_TGLFormat

#include "TVirtualGL.h"
#include "Rtypes.h"

#include <vector>

/*
   TGLFormat class describes the pixel format of a drawing surface.
   It's a generic analog of PIXELFORMATDESCRIPTOR (win32) or
   array of integer constants array for glXChooseVisual (X11).
   This class is in a very preliminary state, different
   options have not been tested yet, only defaults.

   Surface can be:
   -RGBA
   -with/without depth buffer
   -with/without stencil buffer
   -with/without accum buffer
   -double/single buffered
*/

class TGLFormat
{
private:
   Bool_t fDoubleBuffered;
   Bool_t fStereo;
   Int_t  fDepthSize;
   Int_t  fAccumSize;
   Int_t  fStencilSize;
   Int_t  fSamples;

   static std::vector<Int_t> fgAvailableSamples;

   static Int_t GetDefaultSamples();
   static void  InitAvailableSamples();

public:
   TGLFormat();
   TGLFormat(Rgl::EFormatOptions options);

   //Virtual dtor only to supress warnings from g++ -
   //ClassDef adds virtual functions, so g++ wants virtual dtor.
   virtual ~TGLFormat();

   Bool_t operator == (const TGLFormat &rhs)const;
   Bool_t operator != (const TGLFormat &rhs)const;

   Int_t  GetDepthSize()const;
   void   SetDepthSize(Int_t depth);
   Bool_t HasDepth()const;

   Int_t  GetStencilSize()const;
   void   SetStencilSize(Int_t stencil);
   Bool_t HasStencil()const;

   Int_t  GetAccumSize()const;
   void   SetAccumSize(Int_t accum);
   Bool_t HasAccumBuffer()const;

   Bool_t IsDoubleBuffered()const;
   void   SetDoubleBuffered(Bool_t db);

   Bool_t IsStereo()const;
   void   SetStereo(Bool_t db);

   Int_t  GetSamples()const;
   void   SetSamples(Int_t samples);
   Bool_t HasMultiSampling()const;

   ClassDef(TGLFormat, 0); // Describes GL buffer format.
};

#endif