Package net.sf.jiga.xtended

Examples of net.sf.jiga.xtended.JXAException


    public int itemBufferName(int bufferHash, int i) {
        Item it = item(bufferHash, i);
        if (it != null) {
            return it.name;
        }
        throw new JXAException(JXAException.LEVEL.SYSTEM, "no valid name found !!!");
    }
View Full Code Here


            case GL11.GL_MODELVIEW_MATRIX:
                return GL11.GL_MODELVIEW;
            case GL11.GL_PROJECTION_MATRIX:
                return GL11.GL_PROJECTION;
            default:
                throw new JXAException("invalid GL stack pointer");
        }
    }
View Full Code Here

        pack_view = GLHandler._GLgetTopOftheStackMX(GL11.GL_MODELVIEW_MATRIX);
        pack_proj = GLHandler._GLgetTopOftheStackMX(GL11.GL_PROJECTION_MATRIX);
        Util.checkGLError();
        boolean success = Project.gluProject((float) area.getMinX(), (float) area.getMinY(), 0, pack_view, pack_proj, pack_viewport, pack_Rpos);
        if (!success) {
            throw new JXAException("error gluproject these coords " + area);
        }
        Util.checkGLError();
        double x0 = pack_Rpos.get(), y0 = pack_Rpos.get(), z0 = pack_Rpos.get();
        pack_view.rewind();
        pack_proj.rewind();
        pack_viewport.rewind();
        pack_Rpos.clear();
        success = Project.gluProject((float) area.getMaxX(), (float) area.getMaxY(), 0, pack_view, pack_proj, pack_viewport, pack_Rpos);
        pack_Rpos.rewind();
        if (!success) {
            throw new JXAException(JXAException.LEVEL.APP, "error gluproject these coords " + area);
        }
        Util.checkGLError();
        double x1 = pack_Rpos.get(), y1 = pack_Rpos.get(), z1 = pack_Rpos.get();
        /**
         * window coordinates !
View Full Code Here

     * @param dirtyArea area in {@link #ROIcontext()} that is to be packed and
     * modified into the PBO
     */
    protected void readStencilBuffer_DMA(Rectangle dirtyArea) {
        if (!_stencilBlock.isOn()) {
            throw new JXAException(JXAException.LEVEL.SYSTEM, "must set stencil block active");
        }
        GLGeom._shrinkContent(ROI.ROI.getSize(), dirtyArea);
        /**
         * TODO : STREAM_MODE ; flickering issue due to incorrect handle of
         * glTexSubImage with source region (gl_unpack_pixel_*) not the same
View Full Code Here

     *
     * @param dirtyArea area to clear of its pixels in the PBO-R
     */
    protected void clearBufferObject(Rectangle dirtyArea) {
        if (!_stencilBlock.isOn()) {
            throw new JXAException(JXAException.LEVEL.SYSTEM, "must set stencil block active");
        }
        GLGeom._shrinkContent(ROI.ROI.getSize(), dirtyArea);
        if (!dirtyArea.isEmpty()) {
            ROI dirtyAreaPixelPack = returnPixelPackedRegion(dirtyArea);
            if ((bstate & PACKED) != 0) {
View Full Code Here

    /**
     * renders as a texture on {@link #ROIcontext() ROI bounds}
     */
    protected void renderBufferObject(RenderingSceneGL scene, FloatBuffer colorBlend) {
        if (_stencilBlock.isOn()) {
            throw new JXAException(JXAException.LEVEL.SYSTEM, "stencil block active");
        }
        if (isUnpacked()) {
            GLHandler.__renderTexture(Sf3Texture._EXTtex, scene, true, hashCode(), 0, ROI.ROI, ROI.winZ, transform | (isJava2DStyleCoordinates() ? GLHandler._GL_TRANSFORM_FLIP_VERTICAL_BIT : 0), scaleArgs, rotateArgs, translateArgs, null, colorBlend);
        }
    }
View Full Code Here

            }
            AL10.alGetError();
            AL10.alGenBuffers(scratch);
            Util.checkALError();
                } catch (LWJGLException ex) {
                throw new JXAException(ex);
                }
        }
View Full Code Here

            }
            AL10.alGetError();
            AL10.alGenSources(scratch);
            Util.checkALError();
                } catch (LWJGLException ex) {
                throw new JXAException(ex);
                }
        }
View Full Code Here

        public File getEnvInstalledFile(String id) {
                URL u = map.get(id);
                if (u != null) {
                        return findEnvInstalledFile(u);
                } else {
                        throw new JXAException(JXAException.LEVEL.SYSTEM, "File " + id + " wasn't loaded yet");
                }
        }
View Full Code Here

        /**
         * wait for a particular state on this layer
         */
        protected synchronized void waitFor(int rsrcType, int state) {
                if (0 == (rsrcType & (RSRC | GL_RSRC))) {
                        throw new JXAException(JXAException.LEVEL.APP, "unknown parameter rsrcType");
                }
                if (0 == (state & bits._getAllBits())) {
                        throw new JXAException(JXAException.LEVEL.APP, "unknown parameter state");
                }
                try {
                        while (0 == (getLoadState(rsrcType) & state)) {
                                if (!_loadWorks.checkAlive()) {
                                        break;
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.JXAException

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.