TGWin32VirtualGLProxy.cxx

Go to the documentation of this file.
00001 // @(#)root/win32gdk:$Id: TGWin32VirtualGLProxy.cxx 28159 2009-04-08 15:38:15Z bellenot $
00002 // Author: Valeriy Onuchin   05/08/04
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2004,Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #include "TGWin32ProxyDefs.h"
00013 #include "TGWin32VirtualGLProxy.h"
00014 #include "TGWin32.h"
00015 #include "TROOT.h"
00016 
00017 static TGLManager *gManager = 0;
00018 
00019 //____________________________________________________________________________
00020 TGLManager *TGWin32GLManagerProxy::RealObject()
00021 {
00022    if (!gManager) {
00023       gManager = (TGLManager *)gROOT->GetListOfSpecials()->FindObject("gGLManager");
00024    }
00025 
00026    return gManager;
00027 }
00028 
00029 TGWin32GLManagerProxy::TGWin32GLManagerProxy()
00030 {
00031    fIsVirtualX = kFALSE;
00032 }
00033 
00034 RETURN_PROXY_OBJECT(GLManager)
00035 RETURN_METHOD_ARG1(GLManager, Int_t, InitGLWindow, Window_t, winID)
00036 RETURN_METHOD_ARG1(GLManager, Int_t, CreateGLContext, Int_t, winInd)
00037 RETURN_METHOD_ARG5(GLManager, Bool_t, AttachOffScreenDevice, Int_t, winInd, Int_t, x, Int_t, y, UInt_t, w, UInt_t, h)
00038 RETURN_METHOD_ARG5(GLManager, Bool_t, ResizeOffScreenDevice, Int_t, pixInd, Int_t, x, Int_t, y, UInt_t, w, UInt_t, h)
00039 VOID_METHOD_ARG1(GLManager, SelectOffScreenDevice, Int_t, pixInd, 1)
00040 RETURN_METHOD_ARG1(GLManager, Int_t, GetVirtualXInd, Int_t, pixInd)
00041 VOID_METHOD_ARG2(GLManager, MarkForDirectCopy, Int_t, pixInd, Bool_t, direct, 1)
00042 RETURN_METHOD_ARG1(GLManager, Bool_t, MakeCurrent, Int_t, devInd)
00043 VOID_METHOD_ARG1(GLManager, Flush, Int_t, devInd, 1)
00044 VOID_METHOD_ARG1(GLManager, ReadGLBuffer, Int_t, devInd, 1)
00045 VOID_METHOD_ARG1(GLManager, DeleteGLContext, Int_t, devInd, 1)
00046 VOID_METHOD_ARG2(GLManager, ExtractViewport, Int_t, pixInd, Int_t *, vp, 1)
00047 VOID_METHOD_ARG1(GLManager, PrintViewer, TVirtualViewer3D *, vv, 1)
00048 VOID_METHOD_ARG1(GLManager, PaintSingleObject, TVirtualGLPainter *, p, 1)
00049 VOID_METHOD_ARG3(GLManager, PanObject, TVirtualGLPainter *, p, Int_t, x, Int_t, y, 1)
00050 RETURN_METHOD_ARG3(GLManager, Bool_t, PlotSelected, TVirtualGLPainter *, plot, Int_t, x, Int_t, y)
00051 RETURN_METHOD_ARG3(GLManager, char *, GetPlotInfo, TVirtualGLPainter *, plot, Int_t, x, Int_t, y)
00052 RETURN_METHOD_ARG4(GLManager, Bool_t, SelectManip, TVirtualGLManip *, manip, const TGLCamera *, camera, const TGLRect *, rect, const TGLBoundingBox *, box)
00053 RETURN_METHOD_ARG1(GLManager, Bool_t, HighColorFormat, Int_t, ctx)

Generated on Tue Jul 5 14:14:45 2011 for ROOT_528-00b_version by  doxygen 1.5.1