Package net.java.games.jogl

Examples of net.java.games.jogl.GLCapabilities


        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

    private FlatRenderer flatRenderer = null;
    private JPanel panel = null;
    private Image lastImage;

    public OpenGLRenderer() {
        GLCapabilities capbilities = new GLCapabilities();
        capbilities.setDoubleBuffered(true);
        capbilities.setAlphaBits(8);
        capbilities.setRedBits(8);
        capbilities.setGreenBits(8);
        capbilities.setBlueBits(8);       
        System.out.println("OpenGL Renderer: cons");
        canvas = GLDrawableFactory.getFactory().createGLCanvas(capbilities);
        flatRenderer = new FlatRenderer();
        //flatRenderer.init(canvas);
        addRenderEventListener(flatRenderer);
View Full Code Here

    // since we doing active rendering
   
    this.renderer = new JOGLRenderer(vsync);
   
    this.canvas = GLDrawableFactory.getFactory().createGLCanvas(
            new GLCapabilities());
    this.canvas.addGLEventListener(this.renderer);
    this.canvas.setNoAutoRedrawMode(true);
   
    this.canvas.setFocusable(true);
    this.canvas.setSize(this.size);
View Full Code Here

    // time to create OpenGL canvas
    // create the JOGL event listener and renderer
    this.renderer = new JOGLRenderer(vsync);
   
    this.canvas = GLDrawableFactory.getFactory().createGLCanvas(
            new GLCapabilities());
    this.canvas.addGLEventListener(this.renderer);
    this.canvas.setNoAutoRedrawMode(true);
   
    this.canvas.setFocusable(true);
    this.canvas.setSize(this.size);
View Full Code Here

TOP

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

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.