Package com.jogamp.opengl.util.texture

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


       
        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) */
       
            if (gl.isExtensionAvailable("GL_EXT_texture_filter_anisotropic")) {
View Full Code Here


   
    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);
   
    int texWidth = backgroundTexture.getImageWidth();
View Full Code Here

    }

    private void draw(GL2ES2 gl, Drawable drawable) {
        final Sprite sprite = sprites.get(drawable.getSpriteId());
        final Texture texture = textures.get(drawable.getSpriteId());
        texture.bind(gl);

        final int paddingRight = sprite.getPaddingRight() == null ? 0 : sprite.getPaddingRight();
        final int paddingBottom = sprite.getPaddingBottom() == null ? 0 : sprite.getPaddingBottom();

        if (CHECK_DRAWING_SEQUENCE) {
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.