Package net.java.games.jogl

Examples of net.java.games.jogl.DefaultGLCapabilitiesChooser


        canvas.removeGLEventListener(this);

        this.c3d = c3d;
        glc = gc;
        if (glc==null) glc = new GLCapabilities();
        if (ctx==null) ctx = GLContextFactory.getFactory().createGLContext((Component)owner, glc, new DefaultGLCapabilitiesChooser(), null);
        if (!ctx.canCreatePbufferContext()) throw new RuntimeException("PBuffers not supported.");
        pbuffer = new GLPbufferImpl(ctx.createPbufferContext(glc,width,height));

        pbuffer.addGLEventListener(this);
    }
View Full Code Here


        pbuffer.addGLEventListener(this);
    }

    public static void initContext(Object owner) {
        ctx = GLContextFactory.getFactory().createGLContext((Component)owner, new GLCapabilities(), new DefaultGLCapabilitiesChooser(), null);
    }
View Full Code Here

TOP

Related Classes of net.java.games.jogl.DefaultGLCapabilitiesChooser

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.