Package net.sf.jiga.xtended.impl.game.gl

Examples of net.sf.jiga.xtended.impl.game.gl.SpriteGLHandler


    }

    @Override
    protected void doLoadOnGL(RenderingScene context) {
        super.doLoadOnGL(context);
        final SpriteGLHandler spBg = RenderingScene._GLloadSprite((Sprite) gui.getCacheEntry("GFX_MENU_BACKGROUND"), context);
        final SpriteGLHandler sp = RenderingScene._GLloadSprite((Sprite) gui.getCacheEntry("GFX_LOGO"), context);
        context.doTaskOnGL(new Runnable() {
            public void run() {
                TextureTK._do.bindTex(spBg);
                TextureTK._do.changeFiltering(spBg, GL11.GL_LINEAR);
                TextureTK._do.unbindTex();
View Full Code Here


        gui.getMenu_handler().getCurrent().setBounds(menuBounds);
        gui.getMenu_handler().getCurrent().GLpaintComponent(context, z, GLFX.gfx.FX_DOWNREFLEXION_EXT, new Point(0, context.getHeight()), GLGeom.getGlowingColor(Color.ORANGE, gui.glow.glow));
        z++;
        dim = FieldGui._fillDim(new Dimension((int) ((float) context.getWidth() / 4f), (int) ((float) context.getHeight() / 4f)), FieldGui._rbGetDim("GFX_LOGO").ROI.getSize(), true, false);
        dim = gui._GLgetDimZRatio(context, z, dim);
        SpriteGLHandler spLogo = Sprite._GLHandlers.getHandler(gui.getCacheHashEntry("GFX_LOGO"));
        Sprite._GLRenderSprite(context, spLogo, new Rectangle(context._getLogoPosition(context, TextLayout.POS.CENTER, TextLayout.POS.TOP, dim), dim), z,
                GLFX.gfx.FX_DOWNREFLEXION_EXT, new Point(0, context.getHeight()), GLGeom.getGlowingColor(Color.ORANGE, gui.glow.glow),
                0, null, null, null);
    }
View Full Code Here

                        (int) ((3f + 1f) / 5f * (float) gaugeSize.height),
                        (int) ((2f + 1f) / 5f * (float) gaugeSize.height),}
                };
                for (int i = 0; i < life.length; i++) {
                    String leftRightBar = i >= (float) gui.NPLAYERS / 2f ? "_RIGHT" : "_LEFT";
                    SpriteGLHandler lifeBar = Sprite._GLHandlers.getHandler(gui.getCacheHashEntry("GFX_GAUGE_SPRITE" + leftRightBar));
                    SpriteGLHandler lifeBarGlow = Sprite._GLHandlers.getHandler(gui.getCacheHashEntry("GFX_GAUGE_GLOW" + leftRightBar));
                    Rectangle lifeBarMask = gaugeBounds.getBounds();
                    lifeBarMask.setSize(gaugeBounds.width - 20, gaugeBounds.height);
                    lifeBarMask.setLocation((int) gaugeBounds.getX() + 10, (int) gaugeBounds.getY());
                    /**
                     * life bar
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.impl.game.gl.SpriteGLHandler

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.