Package com.ardor3d.renderer.state.record

Examples of com.ardor3d.renderer.state.record.RendererRecord


        return idBuff.get(0);
    }

    public void unbindVBO() {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord rendRecord = context.getRendererRecord();
        JoglRendererUtil.setBoundVBO(rendRecord, 0);
        JoglRendererUtil.setBoundElementVBO(rendRecord, 0);
    }
View Full Code Here


    public void setDepthRange(final double depthRangeNear, final double depthRangeFar) {
        GLContext.getCurrentGL().glDepthRange(depthRangeNear, depthRangeFar);
    }

    public void setDrawBuffer(final DrawBufferTarget target) {
        final RendererRecord record = ContextManager.getCurrentContext().getRendererRecord();
        if (record.getDrawBufferTarget() != target) {
            int buffer = GL.GL_BACK;
            switch (target) {
                case None:
                case Back:
                    break;
                case Front:
                    buffer = GL.GL_FRONT;
                    break;
                case BackLeft:
                    buffer = GL2GL3.GL_BACK_LEFT;
                    break;
                case BackRight:
                    buffer = GL2GL3.GL_BACK_RIGHT;
                    break;
                case FrontLeft:
                    buffer = GL2GL3.GL_FRONT_LEFT;
                    break;
                case FrontRight:
                    buffer = GL2GL3.GL_FRONT_RIGHT;
                    break;
                case FrontAndBack:
                    buffer = GL.GL_FRONT_AND_BACK;
                    break;
                case Left:
                    buffer = GL2GL3.GL_LEFT;
                    break;
                case Right:
                    buffer = GL2GL3.GL_RIGHT;
                    break;
                case Aux0:
                    buffer = GL2.GL_AUX0;
                    break;
                case Aux1:
                    buffer = GL2.GL_AUX1;
                    break;
                case Aux2:
                    buffer = GL2.GL_AUX2;
                    break;
                case Aux3:
                    buffer = GL2.GL_AUX3;
                    break;
            }

            final GL gl = GLContext.getCurrentGL();
            if (gl.isGL2GL3()) {
                gl.getGL2GL3().glDrawBuffer(buffer);
            }
            record.setDrawBufferTarget(target);
        }
    }
View Full Code Here

        gl.getGL2().glCallList(displayListID);
    }

    public void clearClips() {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();
        record.getScissorClips().clear();

        JoglRendererUtil.applyScissors(record);
    }
View Full Code Here

        JoglRendererUtil.applyScissors(record);
    }

    public void popClip() {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();
        record.getScissorClips().pop();

        JoglRendererUtil.applyScissors(record);
    }
View Full Code Here

        JoglRendererUtil.applyScissors(record);
    }

    public void pushClip(final ReadOnlyRectangle2 rectangle) {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();
        record.getScissorClips().push(rectangle);

        JoglRendererUtil.applyScissors(record);
    }
View Full Code Here

        JoglRendererUtil.applyScissors(record);
    }

    public void pushEmptyClip() {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();
        record.getScissorClips().push(null);

        JoglRendererUtil.applyScissors(record);
    }
View Full Code Here

        JoglRendererUtil.applyScissors(record);
    }

    public void setClipTestEnabled(final boolean enabled) {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();

        JoglRendererUtil.setClippingEnabled(record, enabled);
    }
View Full Code Here

        _stencilClearValue = stencilClearValue;
    }

    public boolean isClipTestEnabled() {
        final RenderContext context = ContextManager.getCurrentContext();
        final RendererRecord record = context.getRendererRecord();
        return record.isClippingTestEnabled();
    }
View Full Code Here

        setupRecords();
        _glContextRep = (shared == null) ? new Object() : shared._glContextRep;
    }

    protected RendererRecord createRendererRecord() {
        final RendererRecord rendererRecord = new RendererRecord();
        return rendererRecord;
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.renderer.state.record.RendererRecord

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.