MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / ClientWin

Method ClientWin

client/ClientWin.cpp:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29ClientWin::ClientWin(int dpynum_, Window window_, int drawMethod_,
30 bool stereo_) : drawMethod(drawMethod_), reqDrawMethod(drawMethod_),
31 fb(NULL), cfindex(0), deadYet(false), thread(NULL), stereo(stereo_)
32{
33 if(dpynum_ < 0 || dpynum_ > 65535 || !window_)
34 throw(Error("ClientWin::ClientWin()", "Invalid argument"));
35 dpynum = dpynum_; window = window_;
36
37 #ifdef USEXV
38 for(int i = 0; i < NFRAMES; i++) xvframes[i] = NULL;
39 #endif
40 if(drawMethod == RR_DRAWAUTO) drawMethod = RR_DRAWX11;
41 if(stereo) drawMethod = RR_DRAWOGL;
42 initGL();
43 initX11();
44
45 thread = new Thread(this);
46 thread->start();
47}
48
49
50ClientWin::~ClientWin(void)

Callers

nothing calls this directly

Calls 2

ErrorClass · 0.50
startMethod · 0.45

Tested by

no test coverage detected