ROOT logo
// @(#)root/eve:$Id: TGLFBO.h 29724 2009-08-07 16:10:57Z matevz $
// Author: Matevz Tadel, Aug 2009

/*************************************************************************
 * Copyright (C) 1995-2007, 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_TGLFBO
#define ROOT_TGLFBO

#include "Rtypes.h"

class TGLFBO
{
private:
   TGLFBO(const TGLFBO&);            // Not implemented
   TGLFBO& operator=(const TGLFBO&); // Not implemented

protected:
   UInt_t  fFrameBuffer;
   UInt_t  fColorTexture;
   UInt_t  fDepthBuffer;
   // UInt_t  fStencilBuffer;

   Int_t   fW, fH;

   Bool_t  fIsRescaled;
   Float_t fWScale, fHScale;

   static Bool_t fgRescaleToPow2;

public:
   TGLFBO();
   virtual ~TGLFBO();

   void Init(int w, int h);
   void Release();

   void Bind();
   void Unbind();

   void BindTexture();
   void UnbindTexture();

   ClassDef(TGLFBO, 0); // Frame-buffer object.
};

#endif
 TGLFBO.h:1
 TGLFBO.h:2
 TGLFBO.h:3
 TGLFBO.h:4
 TGLFBO.h:5
 TGLFBO.h:6
 TGLFBO.h:7
 TGLFBO.h:8
 TGLFBO.h:9
 TGLFBO.h:10
 TGLFBO.h:11
 TGLFBO.h:12
 TGLFBO.h:13
 TGLFBO.h:14
 TGLFBO.h:15
 TGLFBO.h:16
 TGLFBO.h:17
 TGLFBO.h:18
 TGLFBO.h:19
 TGLFBO.h:20
 TGLFBO.h:21
 TGLFBO.h:22
 TGLFBO.h:23
 TGLFBO.h:24
 TGLFBO.h:25
 TGLFBO.h:26
 TGLFBO.h:27
 TGLFBO.h:28
 TGLFBO.h:29
 TGLFBO.h:30
 TGLFBO.h:31
 TGLFBO.h:32
 TGLFBO.h:33
 TGLFBO.h:34
 TGLFBO.h:35
 TGLFBO.h:36
 TGLFBO.h:37
 TGLFBO.h:38
 TGLFBO.h:39
 TGLFBO.h:40
 TGLFBO.h:41
 TGLFBO.h:42
 TGLFBO.h:43
 TGLFBO.h:44
 TGLFBO.h:45
 TGLFBO.h:46
 TGLFBO.h:47
 TGLFBO.h:48
 TGLFBO.h:49
 TGLFBO.h:50
 TGLFBO.h:51
 TGLFBO.h:52