Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGWin32VirtualGLProxy.cxx
Go to the documentation of this file.
1 // @(#)root/win32gdk:$Id$
2 // Author: Valeriy Onuchin 05/08/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004,Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #include "TGWin32ProxyDefs.h"
13 #include "TGWin32VirtualGLProxy.h"
14 #include "TGWin32.h"
15 #include "TROOT.h"
16 
17 static TGLManager *gManager = 0;
18 
19 ////////////////////////////////////////////////////////////////////////////////
20 
21 TGLManager *TGWin32GLManagerProxy::RealObject()
22 {
23  if (!gManager) {
24  gManager = (TGLManager *)gROOT->GetListOfSpecials()->FindObject("gGLManager");
25  }
26 
27  return gManager;
28 }
29 
30 TGWin32GLManagerProxy::TGWin32GLManagerProxy()
31 {
32  fIsVirtualX = kFALSE;
33 }
34 
35 RETURN_PROXY_OBJECT(GLManager)
36 RETURN_METHOD_ARG1(GLManager, Int_t, InitGLWindow, Window_t, winID)
37 RETURN_METHOD_ARG1(GLManager, Int_t, CreateGLContext, Int_t, winInd)
38 RETURN_METHOD_ARG5(GLManager, Bool_t, AttachOffScreenDevice, Int_t, winInd, Int_t, x, Int_t, y, UInt_t, w, UInt_t, h)
39 RETURN_METHOD_ARG5(GLManager, Bool_t, ResizeOffScreenDevice, Int_t, pixInd, Int_t, x, Int_t, y, UInt_t, w, UInt_t, h)
40 VOID_METHOD_ARG1(GLManager, SelectOffScreenDevice, Int_t, pixInd, 1)
41 RETURN_METHOD_ARG1(GLManager, Int_t, GetVirtualXInd, Int_t, pixInd)
42 VOID_METHOD_ARG2(GLManager, MarkForDirectCopy, Int_t, pixInd, Bool_t, direct, 1)
43 RETURN_METHOD_ARG1(GLManager, Bool_t, MakeCurrent, Int_t, devInd)
44 VOID_METHOD_ARG1(GLManager, Flush, Int_t, devInd, 1)
45 VOID_METHOD_ARG1(GLManager, ReadGLBuffer, Int_t, devInd, 1)
46 VOID_METHOD_ARG1(GLManager, DeleteGLContext, Int_t, devInd, 1)
47 VOID_METHOD_ARG2(GLManager, ExtractViewport, Int_t, pixInd, Int_t *, vp, 1)
48 VOID_METHOD_ARG1(GLManager, PrintViewer, TVirtualViewer3D *, vv, 1)
49 VOID_METHOD_ARG1(GLManager, PaintSingleObject, TVirtualGLPainter *, p, 1)
50 VOID_METHOD_ARG3(GLManager, PanObject, TVirtualGLPainter *, p, Int_t, x, Int_t, y, 1)
51 RETURN_METHOD_ARG3(GLManager, Bool_t, PlotSelected, TVirtualGLPainter *, plot, Int_t, x, Int_t, y)
52 RETURN_METHOD_ARG3(GLManager, char *, GetPlotInfo, TVirtualGLPainter *, plot, Int_t, x, Int_t, y)
53 RETURN_METHOD_ARG4(GLManager, Bool_t, SelectManip, TVirtualGLManip *, manip, const TGLCamera *, camera, const TGLRect *, rect, const TGLBoundingBox *, box)
54 RETURN_METHOD_ARG1(GLManager, Bool_t, HighColorFormat, Int_t, ctx)