Пример #1
0
  public SModelDrawer(CCModel theModel) {
    _myModel = theModel;

    _myModelShader =
        new CCCGShader(
            CCIOUtil.classPath(this, "model_display.vp"),
            CCIOUtil.classPath(this, "model_display.fp"));
    _myModelShader.load();

    _myWallATex = new CCTexture2D(CCTextureIO.newTextureData("130223_wallmaskA2_highres.jpg"));
    _myWallBTex = new CCTexture2D(CCTextureIO.newTextureData("130223_wallmaskB2_highres.jpg"));
  }
  @Override
  public void setup() {
    _myData = CCTextureIO.newTextureData("demo/textures/testAlpha.png");

    _myTexture = new CCTexture2D(_myData);
  }