23 #include "RConfigure.h" 37 fDoubleBuffered(
kTRUE),
49 fSamples(GetDefaultSamples())
98 return !(*
this == rhs);
254 Info(
"TGLFormat::GetDefaultSamples",
"Requested multi-sampling %d not available, using %d. Adjusting default.", req, *i);
265 std::set<Int_t> ns_set;
271 #elif defined(R__HAS_COCOA) 278 if (GLXEW_ARB_multisample)
280 Display *dpy = (Display*)
gVirtualX->GetDisplay();
281 XVisualInfo tmpl; tmpl.screen =
gVirtualX->GetScreen();
282 long mask = VisualScreenMask;
283 int numVisuals, use_gl, ms_ns;
284 XVisualInfo *vis = XGetVisualInfo(dpy, mask, &tmpl, &numVisuals);
285 for (
int i = 0; i < numVisuals; i++)
287 if (glXGetConfig(dpy, &vis[i], GLX_USE_GL, &use_gl) == 0)
289 glXGetConfig(dpy, &vis[i], GLX_SAMPLES_ARB, &ms_ns);
290 ns_set.insert(ms_ns);
300 for (std::set<Int_t>::iterator i = ns_set.begin(); i != ns_set.end(); ++i)
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
void Info(const char *location, const char *msgfmt,...)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.