Package net.sf.jiga.xtended

Examples of net.sf.jiga.xtended.JXAException


                                break;
                        case DataBuffer.TYPE_INT:
                                IntBuffer.class.cast(pixelBuffer).put(px_tile, int.class.cast(pixel));
                                break;
                        default:
                                throw new JXAException(JXAException.LEVEL.APP, "unknown/unsupported datatype : " + bufferDataType + " of " + pixelBuffer);
                }
        }
View Full Code Here


                                break;
                        case DataBuffer.TYPE_INT:
                                pixelBuffer.asIntBuffer().put(IntBuffer.class.cast(dataBuffer));
                                break;
                        default:
                                throw new JXAException(JXAException.LEVEL.APP, "unknown/unsupported datatype : " + bufferDataType + " of " + pixelBuffer);
                }
        }
View Full Code Here

                                break;
                        case DataBuffer.TYPE_INT:
                                r = IntBuffer.class.cast(dataBuffer).get(pixelPos);
                                break;
                        default:
                                throw new JXAException(JXAException.LEVEL.APP, "unknown/unsupported datatype : " + bufferDataType + " of " + dataBuffer);
                }
                return r;
        }
View Full Code Here

     * @param fill
     */
    public GLCircle(int keepBindingUID, boolean keepBinding, float xRender, float yRender, float lineWidth, int resolutionFaces, float radius, boolean fill) {
        super(keepBindingUID, keepBinding, lineWidth, fill, new Point.Float(xRender, yRender));
        if (resolutionFaces <= 0) {
            throw new JXAException(JXAException.LEVEL.APP, "resolutionFaces must be greater than zero");
        }
        this.resolutionFaces = resolutionFaces;
        this.radius = radius;
        if (!VBOisLoaded()) {
            VBO_setItems(getVerticesArray(), BufferIO._wrapf(new float[]{generateUID()}));
View Full Code Here

                                if (JXAenvUtils._debug) {
                                        System.out.println("xxxx VRAM xxxx SHORT tex2D");
                                }
                                break;
                        default:
                                throw new JXAException("incompatible or unknown BufferedImage type :" + texture.toString());
                }
        }
View Full Code Here

                                if (JXAenvUtils._debug) {
                                        System.out.println("xxxx VRAM xxxx SHORT tex3D");
                                }
                                break;
                        default:
                                throw new JXAException("incompatible or unknown BufferedImage type :" + texture.toString());
                }
        }
View Full Code Here

                                if (JXAenvUtils._debug) {
                                        System.out.println("xxxx VRAM xxxx SHORT tex3D");
                                }
                                break;
                        default:
                                throw new JXAException("incompatible or unknown BufferedImage type :" + texture2D.toString());
                }
        }
View Full Code Here

                if (DebugMap._getInstance().isDebugLevelEnabled(RenderingScene.DBUG_RENDER) && DebugMap._getInstance().isDebugLevelEnabled(DebugMap._getInstance()._VOID)) {
                        int depth = GL11.glGetInteger(GL11.GL_ATTRIB_STACK_DEPTH);
                        int maxDepth = GL11.glGetInteger(GL11.GL_MAX_ATTRIB_STACK_DEPTH);
                        /*System.out.println("attrib stack depth " + depth);*/
                        if (depth >= maxDepth) {
                                throw new JXAException(JXAException.LEVEL.SYSTEM, "OpenGL attrib stack overflow (possible cause : another OpenGL error occured before or missing one GLHandler.popAttrib())");
                        }
                }
                Util.checkGLError();
        }
View Full Code Here

                if (DebugMap._getInstance().isDebugLevelEnabled(RenderingScene.DBUG_RENDER)) {
                        int depth = GL11.glGetInteger(GL11.GL_CLIENT_ATTRIB_STACK_DEPTH);
                        int maxDepth = GL11.glGetInteger(GL11.GL_MAX_CLIENT_ATTRIB_STACK_DEPTH);
                        System.out.println("client attrib stack depth " + depth);
                        if (depth >= maxDepth) {
                                throw new JXAException(JXAException.LEVEL.SYSTEM, "client attrib stack overflow");
                        }
                }
                Util.checkGLError();
        }
View Full Code Here

     * @param renderAt
     */
    public GLGeomObject(int keepBindingUID, boolean keepBinding, float lineWidth, boolean fill, Float renderAt) {
        super();
        if (lineWidth == 0f) {
            throw new JXAException(JXAException.LEVEL.APP, "GLLineWidth requires a stricly positive value");
        }
        this.keepBinding = keepBinding;
        this.keepBindingUID = keepBindingUID;
        this.lineWidth = lineWidth;
        this.fill = fill;
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.