Package com.sun.opengl.util.texture

Examples of com.sun.opengl.util.texture.Texture.bind()


            blendvalue = 0;
          }
          else {
            gl.glColor4f(blendvalue, blendvalue, blendvalue, 1.f);
            gl.glEnable(GL.GL_TEXTURE_2D);
            interpolationtextureID.bind();
          }
        }
        else {
          blendvalue = 0;
        }
View Full Code Here


            for (String str : _texsActive[cleanLayer].keySet()) {
                _texProc.freeTexture(str);
                Texture t = _texsActive[cleanLayer].get(str);
                if (isLoaded(t)) {
                    t.bind();
                    t.dispose();
                }
            }
            _texsActive[cleanLayer].clear();
            System.gc();
View Full Code Here

                for (int i = 0; i < 3; i++) {
                    for (String str : _texsActive[i].keySet()) {
                        _texProc.freeTexture(str);
                        Texture t = _texsActive[i].get(str);
                        if (isLoaded(t)) {
                            t.bind();
                            t.dispose();
                        }
                    }
                    _texsActive[i].clear();
                    System.gc();
View Full Code Here

    private void drawCell(GL gl, MapGridCellView cell) {
        try {
            Texture t = getTexture(cell);
            t.enable();
            t.bind();
            TextureCoords tc = t.getImageTexCoords();
            gl.glBegin(GL.GL_QUADS);
            gl.glTexCoord2d(tc.left(), tc.top());
            gl.glVertex3d(cell.getX(), cell.getY(), 0);
View Full Code Here

    private void drawCell(GL gl, MapGridCellView cell) {
        try {
            Texture t = getTexture(cell);
            t.enable();
            t.bind();
            TextureCoords tc = t.getImageTexCoords();
            gl.glBegin(GL.GL_QUADS);
            gl.glTexCoord2d(tc.left(), tc.top());
            gl.glVertex3d(cell.getX(), cell.getY(), 0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.