Examples of MCAL_Entry


Examples of starlight.taliis.core.chunks.adt.MCAL_Entry

        // preload data
        int data[] = new int[4096];
       
 
        for(int layer=0; layer<layers; layer++){
          MCAL_Entry mce = obj.mcnk[x*16+y].mcal.getLayerNo(layer);
         
          for(int c=0; c<4096; c++) {
           
            // color = old color | new color>>layer*16bit
            int newcolor = (mce.getValue(c)&0xff)<<(layer*8);
           
            // combined
            data[c] = data[c] | newcolor;
                   
        }
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCAL_Entry

   */
  public BufferedImage createLightMap(int n) {
    int dimension = 64;
     
    // werte bereitstellen
    MCAL_Entry alpha = data.mcal.getLayerNo(n);
   
      // neues bild als buffered Image erstellen
      BufferedImage bimage = new BufferedImage(dimension, dimension,
          BufferedImage.TYPE_INT_RGB );
     
      int[] rgbArray = new int[dimension * dimension];
      int i, j;

      // lightmap erstellen
      for(i=0; i<dimension; i++)
        for(j=0; j<dimension; j++) {
          rgbArray[dimension*i+j] = alpha.getValue(dimension*i+j);
        }
     
      // werte �bernehmen
      bimage.setRGB(0, 0, dimension, dimension, rgbArray, 0, dimension);     
     
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCAL_Entry

        // preload data
        int data[] = new int[4096];
       
 
        for(int layer=0; layer<layers; layer++){
          MCAL_Entry mce = obj.mcnk[x*16+y].mcal.getLayerNo(layer);
         
          for(int c=0; c<4096; c++) {
           
            // color = old color | new color>>layer*16bit
            int newcolor = (mce.getValue(c)&0xff)<<(layer*8);
           
            // combined
            data[c] = data[c] | newcolor;
                   
        }
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCAL_Entry

     
            for(int layer=0; layer<layers; layer++){
             
              if(obj.mcnk[x*16+y].mcal.getSize()!=0){
              if(obj.mcnk[x*16+y].mcly.layer[layer].getTextureID()==TextureID && obj.mcnk[x*16+y].mcal.getLenght()-1>=obj.mcnk[x*16+y].mcly.layer[layer].getAlphaID()){
                MCAL_Entry mce = obj.mcnk[x*16+y].mcal.getLayerNo(obj.mcnk[x*16+y].mcly.layer[layer].getAlphaID());
                for(int c=0; c<4096; c++) {

                data[c] = (mce.getValue(c)&0xff);
                       
              }
              }

             
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.