congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DefaultGraphicsConfigurationFactoryImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl
constructor

Best Java code snippets using jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl.<init> (Showing top 2 results out of 315)

origin: ch.unibas.cs.gravis/scalismo-native-stub

public static synchronized void initSingleton() {
  if(!initialized) {
    initialized = true;
    if(DEBUG) {
      System.err.println(Thread.currentThread().getName()+" - GraphicsConfigurationFactory.initSingleton()");
    }
    // Register the default no-op factory for arbitrary
    // AbstractGraphicsDevice implementations, including
    // AWTGraphicsDevice instances -- the OpenGL binding will take
    // care of handling AWTGraphicsDevices on X11 platforms (as
    // well as X11GraphicsDevices in non-AWT situations)
    registerFactory(defaultDeviceCapsType.deviceType, defaultDeviceCapsType.capsType, new DefaultGraphicsConfigurationFactoryImpl());
    if (NativeWindowFactory.TYPE_X11 == NativeWindowFactory.getNativeWindowType(true)) {
      try {
        ReflectionUtil.callStaticMethod("jogamp.nativewindow.x11.X11GraphicsConfigurationFactory",
                        "registerFactory", null, null, GraphicsConfigurationFactory.class.getClassLoader());
      } catch (final Exception e) {
        throw new RuntimeException(e);
      }
      if(NativeWindowFactory.isAWTAvailable()) {
        try {
          ReflectionUtil.callStaticMethod("jogamp.nativewindow.x11.awt.X11AWTGraphicsConfigurationFactory",
                          "registerFactory", null, null, GraphicsConfigurationFactory.class.getClassLoader());
        } catch (final Exception e) { /* n/a */ }
      }
    }
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

public static synchronized void initSingleton() {
  if(!initialized) {
    initialized = true;
    if(DEBUG) {
      System.err.println(Thread.currentThread().getName()+" - GraphicsConfigurationFactory.initSingleton()");
    }
    // Register the default no-op factory for arbitrary
    // AbstractGraphicsDevice implementations, including
    // AWTGraphicsDevice instances -- the OpenGL binding will take
    // care of handling AWTGraphicsDevices on X11 platforms (as
    // well as X11GraphicsDevices in non-AWT situations)
    registerFactory(defaultDeviceCapsType.deviceType, defaultDeviceCapsType.capsType, new DefaultGraphicsConfigurationFactoryImpl());
    if (NativeWindowFactory.TYPE_X11 == NativeWindowFactory.getNativeWindowType(true)) {
      try {
        ReflectionUtil.callStaticMethod("jogamp.nativewindow.x11.X11GraphicsConfigurationFactory",
                        "registerFactory", null, null, GraphicsConfigurationFactory.class.getClassLoader());
      } catch (final Exception e) {
        throw new RuntimeException(e);
      }
      if(NativeWindowFactory.isAWTAvailable()) {
        try {
          ReflectionUtil.callStaticMethod("jogamp.nativewindow.x11.awt.X11AWTGraphicsConfigurationFactory",
                          "registerFactory", null, null, GraphicsConfigurationFactory.class.getClassLoader());
        } catch (final Exception e) { /* n/a */ }
      }
    }
  }
}
jogamp.nativewindowDefaultGraphicsConfigurationFactoryImpl<init>

Popular methods of DefaultGraphicsConfigurationFactoryImpl

    Popular in Java

    • Making http post requests using okhttp
    • compareTo (BigDecimal)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • onCreateOptionsMenu (Activity)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • String (java.lang)
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • Permission (java.security)
      Legacy security code; do not use.
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • BoxLayout (javax.swing)
    • Top 15 Vim Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now