Package com.jogamp.opengl.util.texture

Examples of com.jogamp.opengl.util.texture.Texture.enable()


        }
       
        TextureData textureData = material.getTextureDataList().get(i);
       
        Texture texture = textureManager.getTextureForFile(textureData.file);
            texture.enable(gl); //TODO: should this be called every time?
            texture.bind(gl);
           
        /* enable anisotropic filtering (note: this could be a
         * per-texture setting, but currently isn't) */
       
 
View Full Code Here


    gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
   
    Texture backgroundTexture =
        textureManager.getTextureForFile(backgroundImage);

    backgroundTexture.enable(gl);
    backgroundTexture.bind(gl);
   
    gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
    gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
   
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.