@Override
  public final void logToFile(BufferedWriter out) {
    if( !LOG_FILE || out == null) return;
    try {
      out.write( dataAsString() );
    } catch (IOException e) {
      e.printStackTrace();
    }
    for(int i = 0; i < S32_NUM_SHADERS; i++)
      shaders[i].logToFile(out);

    for(int i = 0; i < S32_NUM_TRIANGLES; i++)
      triangles[i].logToFile(out);

    for(int i = 0; i < S32_NUM_VERTS; i++)
      tex_coords[i].logToFile(out);

    for(int i = 0; i < S32_NUM_FRAMES; i++)
      surface_frames[i].logToFile(out);
  }