private void addVertex(Vertex vertex){
  mBufVertices.put((float)vertex.mPosX);
  mBufVertices.put((float)vertex.mPosY);
  mBufVertices.put((float)vertex.mPosZ);
  mBufColors.put(vertex.mColorFactor * Color.red(vertex.mColor) / 255f);
  mBufColors.put(vertex.mColorFactor * Color.green(vertex.mColor) / 255f);
  mBufColors.put(vertex.mColorFactor * Color.blue(vertex.mColor) / 255f);
  mBufColors.put(Color.alpha(vertex.mColor) / 255f);
  if (DRAW_TEXTURE) {
    mBufTexCoords.put((float)vertex.mTexX);
    mBufTexCoords.put((float)vertex.mTexY);
  }
}

private void addVertex ( Vertex vertex ) { mBufVertices . put ( ( float ) vertex . mPosX ) ; mBufVertices . put ( ( float ) vertex . mPosY ) ; mBufVertices . put ( ( float ) vertex . mPosZ ) ; mBufColors . put ( vertex . mColorFactor * Color . red ( vertex . mColor ) / 255f ) ; mBufColors . put ( vertex . mColorFactor * Color . green ( vertex . mColor ) / 255f ) ; mBufColors . put ( vertex . mColorFactor * Color . blue ( vertex . mColor ) / 255f ) ; mBufColors . put ( Color . alpha ( vertex . mColor ) / 255f ) ; if ( DRAW_TEXTURE ) { mBufTexCoords . put ( ( float ) vertex . mTexX ) ; mBufTexCoords . put ( ( float ) vertex . mTexY ) ; } }
adds vertex to buffers .
