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

Class ClientWin

client/ClientWin.h:28–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace client
27{
28 class ClientWin : public util::Runnable
29 {
30 public:
31
32 ClientWin(int dpynum, Window window, int drawMethod, bool stereo);
33 virtual ~ClientWin(void);
34 common::Frame *getFrame(bool useXV);
35 void drawFrame(common::Frame *f);
36 int match(int dpynum, Window window);
37 bool isStereo(void) { return stereo; }
38
39 private:
40
41 void initGL(void);
42 void initX11(void);
43
44 int drawMethod, reqDrawMethod;
45 static const int NFRAMES = 2;
46 common::Frame *fb;
47 common::CompressedFrame cframes[NFRAMES]; int cfindex;
48 #ifdef USEXV
49 common::XVFrame *xvframes[NFRAMES];
50 #endif
51 util::GenericQ q;
52 bool deadYet;
53 int dpynum; Window window;
54 void run(void);
55 util::Thread *thread;
56 util::CriticalSection cfmutex;
57 bool stereo;
58 util::CriticalSection mutex;
59 };
60}
61
62#endif // __CLIENTWIN_H__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected