23#include "RConfigure.h"
97 return !(*
this == rhs);
236 Int_t req =
gEnv->GetValue(
"OpenGL.Framebuffer.Multisample", 0);
253 Info(
"TGLFormat::GetDefaultSamples",
"Requested multi-sampling %d not available, using %d. Adjusting default.", req, *i);
254 gEnv->SetValue(
"OpenGL.Framebuffer.Multisample", *i);
264 std::set<Int_t> ns_set;
270#elif defined(R__HAS_COCOA)
277 if (GLAD_GLX_ARB_multisample)
279 Display *dpy = (Display*)
gVirtualX->GetDisplay();
281 long mask = VisualScreenMask;
282 int numVisuals, use_gl, ms_ns;
283 XVisualInfo *vis = XGetVisualInfo(dpy, mask, &tmpl, &numVisuals);
284 for (
int i = 0; i < numVisuals; i++)
286 if (glXGetConfig(dpy, &vis[i], GLX_USE_GL, &use_gl) == 0)
288 glXGetConfig(dpy, &vis[i], GLX_SAMPLES_ARB, &ms_ns);
289 ns_set.insert(ms_ns);
299 for (std::set<Int_t>::iterator i = ns_set.begin(); i != ns_set.end(); ++i)
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.