Package ponkOut.graphics.resources

Examples of ponkOut.graphics.resources.TextureManager


public class CubeMap {
  private Texture[] tex = new Texture[6];

  public CubeMap(String left, String right, String top, String bottom, String front, String back) {
    TextureManager tm = TextureManager.getInstance();

    tex[0] = tm.getCubeMapTexture(right, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB);
    tex[1] = tm.getCubeMapTexture(left, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB);
    tex[2] = tm.getCubeMapTexture(top, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB);
    tex[3] = tm.getCubeMapTexture(bottom, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB);
    tex[4] = tm.getCubeMapTexture(back, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB);
    tex[5] = tm.getCubeMapTexture(front, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB);
  }
View Full Code Here

TOP

Related Classes of ponkOut.graphics.resources.TextureManager

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.