Examples of GLPbufferImpl


Examples of net.java.games.jogl.impl.GLPbufferImpl

        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

Examples of net.java.games.jogl.impl.GLPbufferImpl

    public void setSize(int width, int height) {
        try {
            pbuffer.setSize(width, height);
        } catch(net.java.games.jogl.GLException gle) {
            pbuffer.removeGLEventListener(this);
            pbuffer = new GLPbufferImpl(ctx.createPbufferContext(glc,width,height));
            initialized = false;
            snapshotImage = null;
            this.width = width; this.height = height;
            pbuffer.addGLEventListener(this);
        }
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.