Package com.badlogic.gdx.graphics.g3d.attributes

Examples of com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute


      new DepthTestAttribute(GL20.GL_LEQUAL, false),
      TextureAttribute.createDiffuse(null));
  }

  public void setTexture(Texture texture){
    TextureAttribute attribute = (TextureAttribute) renderable.material.get(TextureAttribute.Diffuse);
    attribute.textureDescription.texture = texture;
  }
View Full Code Here


    TextureAttribute attribute = (TextureAttribute) renderable.material.get(TextureAttribute.Diffuse);
    attribute.textureDescription.texture = texture;
  }

  public Texture getTexture () {
    TextureAttribute attribute = (TextureAttribute) renderable.material.get(TextureAttribute.Diffuse);
    return attribute.textureDescription.texture;
  }
View Full Code Here

  public void setTexture(Texture texture){
    renderablePool.freeAll(renderables);
    renderables.clear();
    for(int i=0, free = renderablePool.getFree(); i < free; ++i){
      Renderable renderable = renderablePool.obtain();
      TextureAttribute attribute = (TextureAttribute) renderable.material.get(TextureAttribute.Diffuse);
      attribute.textureDescription.texture = texture;
    }
    this.texture = texture;
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.attributes.TextureAttribute

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.