在JSR184中使用3D帖图[4]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

    // The texture coordinates is scaled down to 0-1 values in the setTextCoords method

     short []TEXTURES = new short[] {0, 255,        255, 255,     127, 0,

                                  0, 255,        255, 255,     127, 0,

                              0, 255,        255, 255,     127, 0,

                              0, 255,        255, 255,     127, 0,

                              0, 0,            255, 0,         255, 255,

                              0, 0,            255, 255,     0, 255};

                                                           

  TEXTURE_ARRAY = new VertexArray(TEXTURES.length / 2, 2, 2);

  TEXTURE_ARRAY.set(0, TEXTURES.length / 2, TEXTURES);

本文关键:在JSR184中使用3D帖图
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top