Package com.jogamp.nativewindow.awt

Examples of com.jogamp.nativewindow.awt.AWTGraphicsConfiguration


      glContext = glDrawable.createContext(context(shareCtx));
        }
      else {
        // determined in 'getBestConfiguration'
      GraphicsConfigInfo gcInf0 = Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration);
      AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();

        // JAWTWindow
      JAWTWindow nativeWindow = (JAWTWindow)NativeWindowFactory.getNativeWindow(cv, awtConfig);
      nativeWindow.lockSurface();
        try {
View Full Code Here


        f.setUndecorated(true);
        f.setLayout(new BorderLayout());

        ContextQuerier querier = new ContextQuerier(cv);

        AWTGraphicsConfiguration awtConfig =
            (AWTGraphicsConfiguration)Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration).getPrivateData();

        QueryCanvas canvas = new QueryCanvas(awtConfig, querier);

        f.add(canvas, BorderLayout.CENTER);
View Full Code Here

        // Retrieve the offscreen Canvas3D's GraphicsConfigInfo
    GraphicsConfigInfo gcInf0 = Canvas3D.graphicsConfigTable.get(jgc);

    // Offscreen Canvas3D's graphics configuration, determined in 'getBestConfiguration'
    AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();

    // TODO Offscreen Canvas3D's graphics devise, determined in 'getBestConfiguration'
    //AbstractGraphicsDevice device = awtConfig.getScreen().getDevice();      // throws exception
    // Alternative: default graphics device
        AbstractGraphicsDevice device = GLDrawableFactory.getDesktopFactory().getDefaultDevice();

    // Offscreen Canvas3D's capabilites, determined in 'getBestConfiguration'
    GLCapabilities canvasCaps = (GLCapabilities)awtConfig.getChosenCapabilities();

    // For further investigations : the user's GraphicsConfigTemplate3D (not used yet)
    GraphicsConfigTemplate3D gct3D = gcInf0.getGraphicsConfigTemplate3D();

View Full Code Here

    @Override
    GraphicsConfiguration getGraphicsConfig(GraphicsConfiguration gconfig) {
        if (VERBOSE) System.err.println("JoglPipeline.getGraphicsConfig()");

    GraphicsConfigInfo       gcInf0    = Canvas3D.graphicsConfigTable.get(gconfig);
    AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();

      return awtConfig.getAWTGraphicsConfiguration();
    }
View Full Code Here

        // Note that we loop in similar fashion to the NativePipeline's
        // native code in the situation where we need to disable certain
        // capabilities which aren't required
        boolean tryAgain = true;
        CapabilitiesCapturer capturer = null;
        AWTGraphicsConfiguration awtConfig = null;
        while (tryAgain) {
            Frame f = new Frame(device.getDefaultConfiguration());
            f.setUndecorated(true);
            f.setLayout(new BorderLayout());
            capturer = new CapabilitiesCapturer();
View Full Code Here

    private static AWTGraphicsConfiguration createAwtGraphicsConfiguration(GLCapabilities capabilities,
            CapabilitiesChooser chooser,
            AbstractGraphicsScreen screen) {
        GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(AWTGraphicsDevice.class, GLCapabilities.class);
        AWTGraphicsConfiguration awtGraphicsConfiguration = (AWTGraphicsConfiguration) factory.chooseGraphicsConfiguration(capabilities, capabilities,
        chooser, screen, VisualIDHolder.VID_UNDEFINED);
        return awtGraphicsConfiguration;
    }
View Full Code Here

TOP

Related Classes of com.jogamp.nativewindow.awt.AWTGraphicsConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.