Package javax.media.nativewindow

Examples of javax.media.nativewindow.AbstractGraphicsDevice


        int imageWidth = width;
        int imageHeight = height;

        GLProfile profile = GLProfile.get(GLProfile.GL2);
        GLCapabilities caps = new GLCapabilities(profile);
        AbstractGraphicsDevice device = GLDrawableFactory.getFactory(profile).getDefaultDevice();
        //Caps

        caps.setAlphaBits(8);
        caps.setDoubleBuffered(false);
        caps.setHardwareAccelerated(true);
View Full Code Here


    LOGGER.info("DrawingMode.SUBTRACT supported: " + isGlExtBlendSubtractSupported);
  }
 
  private void initialize(int width, int height) {
    GLDrawableFactory drawableFactory = GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL2));
    AbstractGraphicsDevice graphicsDevice = drawableFactory.getDefaultDevice();

//    if(!drawableFactory.canCreateGLPbuffer(graphicsDevice)) {
//      throw new RuntimeException("PBuffer not supported but required in this implementation!");
//    }
   
View Full Code Here

    return true;
  }
 
  private void initialize(boolean lightweight) {
    GLDrawableFactory drawableFactory = GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL2));
    AbstractGraphicsDevice graphicsDevice = drawableFactory.getDefaultDevice();
    if(!drawableFactory.canCreateGLPbuffer(graphicsDevice)) {
      throw new RuntimeException("PBuffer not supported but required in this implementation!");
    }
   
    int imageDrawingWidth = properties.getImageDrawingWidth();
View Full Code Here

    return true;
  }

  private void initialize(int width, int height) {
    GLDrawableFactory drawableFactory = GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL2));
    AbstractGraphicsDevice graphicsDevice = drawableFactory.getDefaultDevice();

    if(!drawableFactory.canCreateGLPbuffer(graphicsDevice)) {
      throw new RuntimeException("PBuffer not supported but required in this implementation!");
    }
   
View Full Code Here

TOP

Related Classes of javax.media.nativewindow.AbstractGraphicsDevice

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.