/usr/include/root/TGLLightSet.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 | // @(#)root/gl:$Id$
// Author: Matevz Tadel, Feb 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_TGLLightSet_H
#define ROOT_TGLLightSet_H
#include <TObject.h>
class TGLBoundingBox;
class TGLCamera;
class TGLLightSet : public TObject
{
public:
enum ELight { kLightFront = 0x0001,
kLightTop = 0x0002,
kLightBottom = 0x0004,
kLightLeft = 0x0008,
kLightRight = 0x0010,
kLightMask = 0x001f,
kLightSpecular = 0x0100 };
private:
TGLLightSet(const TGLLightSet&); // Not implemented
TGLLightSet& operator=(const TGLLightSet&); // Not implemented
protected:
UInt_t fLightState; //! light states (on/off) mask
Bool_t fUseSpecular; //!
Float_t fFrontPower; //! power of the front lamp
Float_t fSidePower; //! power of the side lamps
Float_t fSpecularPower; //! power of specular lamp
public:
TGLLightSet();
virtual ~TGLLightSet() {}
void ToggleLight(ELight light);
void SetLight(ELight light, Bool_t on);
UInt_t GetLightState() { return fLightState; }
Bool_t GetUseSpecular() const { return fUseSpecular; }
void SetUseSpecular(Bool_t s) { fUseSpecular = s; }
Float_t GetFrontPower() const { return fFrontPower; }
Float_t GetSidePower() const { return fSidePower; }
Float_t GetSpecularPower() const { return fSpecularPower; }
void SetFrontPower(Float_t p) { fFrontPower = p; }
void SetSidePower(Float_t p) { fSidePower = p; }
void SetSpecularPower(Float_t p) { fSpecularPower = p; }
void StdSetupLights(const TGLBoundingBox& bbox, const TGLCamera& camera,
Bool_t debug=kFALSE);
ClassDef(TGLLightSet, 0) // A set of OpenGL lights.
}; // endclass TGLLightSet
#endif
|