Package com.googlecode.gwtgl.wrapper

Examples of com.googlecode.gwtgl.wrapper.Texture2D


  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here


  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here

  /**
   * Initializes the texture of this example.
   */
  private void initTexture() {
    // Create and initialize the WebGLTexture object.
    texture = new Texture2D(webGLWrapper, Resources.INSTANCE.texture());

    // set the texture active on texture unit 0 and bind the texture
    texture.setActiveAndBind(0);
    //
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D,
View Full Code Here

  private void initTexture() {
    webGLWrapper.setTextureWrapS(TextureTarget.TEXTURE_2D, TextureWrapMode.CLAMP_TO_EDGE);
    webGLWrapper.setTextureWrapT(TextureTarget.TEXTURE_2D, TextureWrapMode.CLAMP_TO_EDGE);
   
    // Create and initialize the WebGLTexture objects.
    textureFront = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxFt());
    textureBack = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxBk());
    textureTop = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxUp());
    textureBottom = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxDn());
    textureLeft = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxLf());
    textureRight = new Texture2D(webGLWrapper, Resources.INSTANCE.textureSkyboxRt());

    // set the texture active on texture unit 0 and bind the texture
    textureFront.setActiveAndBind(0);
    webGLWrapper.setTextureMinFilter(TextureTarget.TEXTURE_2D, TextureMinFilter.NEAREST);
    webGLWrapper.setTextureMagFilter(TextureTarget.TEXTURE_2D, TextureMagFilter.NEAREST);
View Full Code Here

TOP

Related Classes of com.googlecode.gwtgl.wrapper.Texture2D

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.