Project

General

Profile

« Previous | Next » 

Revision 2dacdeb2

Added by Leszek Koltunski almost 8 years ago

remove the 'Color' vertex attribute.

View differences:

src/main/java/org/distorted/library/DistortedBitmapGrid.java
50 50

  
51 51
    // for(int g=0; g<dataLength; g++) Log.e(TAG_BACKGROUND, "index["+g+"]="+indexData[g]);
52 52

  
53
    float[] bufferData= new float[COLOR_DATA_SIZE*dataLength];
54

  
55
    offset=0;
56
    for(int i=0; i<dataLength; i++)
57
      {
58
      bufferData[offset++] = 1.0f; // r
59
      bufferData[offset++] = 1.0f; // g
60
      bufferData[offset++] = 1.0f; // b
61
      bufferData[offset++] = 1.0f; // a
62
      }
63
    mGridColors = ByteBuffer.allocateDirect(COLOR_DATA_SIZE*dataLength*BYTES_PER_FLOAT).order(ByteOrder.nativeOrder()).asFloatBuffer();                                                        
64
    mGridColors.put(bufferData).position(0); 
65

  
66
    bufferData = new float[NORMAL_DATA_SIZE*dataLength];
53
    float[] bufferData = new float[NORMAL_DATA_SIZE*dataLength];
67 54

  
68 55
    offset=0;
69 56
    for(int i=0; i<dataLength; i++)

Also available in: Unified diff