Examples of canCreateGLPbuffer()


Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

    /* create GL canvas and set rendering parameters */

    GLProfile profile = GLProfile.getDefault();
    GLDrawableFactory factory = GLDrawableFactory.getFactory(profile);
   
    if (! factory.canCreateGLPbuffer(null, profile)) {
      throw new Error("Cannot create GLPbuffer for OpenGL output!");
    }
   
    GLCapabilities cap = new GLCapabilities(profile);
    cap.setDoubleBuffered(false);
View Full Code Here

Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

    int imageDrawingWidth = properties.getImageDrawingWidth();
    int imageDrawingHeight = properties.getImageDrawingHeight();
    LOGGER.info("Requested image drawing size: " + imageDrawingWidth + "x" + imageDrawingHeight);
   
    if(!(imageRenderContext.getDrawable() instanceof GLPbuffer)) {
      boolean cannotCreatePBuffer = !drawableFactory.canCreateGLPbuffer(graphicsDevice);
      // debug fallback
      if(!properties.isPBuffer()) cannotCreatePBuffer = true;
      if(!usePBuffer) cannotCreatePBuffer = true;
      if(!cannotCreatePBuffer) {
        try {
View Full Code Here

Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

  }
 
  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();
    int imageDrawingHeight = properties.getImageDrawingHeight();
View Full Code Here

Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

    int imageDrawingHeight = properties.getImageDrawingHeight();
    LOGGER.info("Requested image drawing size: " + imageDrawingWidth + "x" + imageDrawingHeight);
   
    if(!(imageDrawable instanceof GLPbuffer)) imageDrawable = null;
    if(imageDrawable == null) {
      boolean cannotCreatePBuffer = !drawableFactory.canCreateGLPbuffer(graphicsDevice);
      // debug fallback
      if(!properties.isPBuffer()) cannotCreatePBuffer = true;
      if(!usePBuffer) cannotCreatePBuffer = true;
      if(!cannotCreatePBuffer) {
        try {
View Full Code Here

Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

  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!");
    }
   
    int imageDrawingWidth = properties.getImageDrawingWidth();
    int imageDrawingHeight = properties.getImageDrawingHeight();
View Full Code Here

Examples of javax.media.opengl.GLDrawableFactory.canCreateGLPbuffer()

    int imageDrawingHeight = properties.getImageDrawingHeight();
    LOGGER.info("Requested image drawing size: " + imageDrawingWidth + "x" + imageDrawingHeight);
   
    if(!(imageDrawable instanceof GLPbuffer)) imageDrawable = null;
    if(imageDrawable == null) {
      boolean cannotCreatePBuffer = !drawableFactory.canCreateGLPbuffer(graphicsDevice);
      // debug fallback
      if(!properties.isPBuffer()) cannotCreatePBuffer = true;
      if(!usePBuffer) cannotCreatePBuffer = true;
      if(!cannotCreatePBuffer) {
        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.