Esempio n. 1
0
 SharedResource(
     X11GraphicsDevice dev,
     X11GraphicsScreen scrn,
     GLDrawableImpl draw,
     GLContextImpl ctx,
     VersionNumber glXServerVer,
     String glXServerVendor,
     boolean glXServerMultisampleAvail) {
   device = dev;
   screen = scrn;
   drawable = draw;
   context = ctx;
   glXServerVersion = glXServerVer;
   glXServerVersionOneOneCapable = glXServerVersion.compareTo(versionOneOne) >= 0;
   glXServerVersionOneThreeCapable = glXServerVersion.compareTo(versionOneThree) >= 0;
   glXServerVendorName = glXServerVendor;
   isGLXServerVendorATI = GLXUtil.isVendorATI(glXServerVendorName);
   isGLXServerVendorNVIDIA = GLXUtil.isVendorNVIDIA(glXServerVendorName);
   glXMultisampleAvailable = glXServerMultisampleAvail;
 }
Esempio n. 2
0
 public final boolean isGLXVersionGreaterEqualOneThree(AbstractGraphicsDevice device) {
   if (null != device) {
     SharedResource sr = (SharedResource) sharedResourceRunner.getOrCreateShared(device);
     if (null != sr) {
       return sr.isGLXVersionGreaterEqualOneThree();
     }
     if (device instanceof X11GraphicsDevice) {
       final VersionNumber glXServerVersion =
           GLXUtil.getGLXServerVersionNumber((X11GraphicsDevice) device);
       return glXServerVersion.compareTo(versionOneThree) >= 0;
     }
   }
   return false;
 }