Project

General

Profile

« Previous | Next » 

Revision c52ddff8

Added by Leszek Koltunski almost 4 years ago

Preparation for saving/reading Meshes to/from a file.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
30 30
import org.distorted.library.program.DistortedProgram;
31 31
import org.distorted.library.type.Static4D;
32 32

  
33
import java.io.InputStream;
34
import java.io.OutputStream;
33 35
import java.nio.ByteBuffer;
34 36
import java.nio.ByteOrder;
35 37
import java.nio.FloatBuffer;
......
498 500
     return mInflate;
499 501
     }
500 502

  
503
///////////////////////////////////////////////////////////////////////////////////////////////////
504
/**
505
 * Read this mesh from a InputStream.
506
 */
507
  void read(final InputStream stream)
508
    {
509

  
510
    }
511

  
501 512
///////////////////////////////////////////////////////////////////////////////////////////////////
502 513
// PUBLIC API
503 514
///////////////////////////////////////////////////////////////////////////////////////////////////
515
/**
516
 * Save the Mesh to a OutputStream.
517
 */
518
  public void save(final OutputStream stream)
519
    {
520

  
521
    }
522

  
523
///////////////////////////////////////////////////////////////////////////////////////////////////
524

  
504 525
/**
505 526
 * When rendering this Mesh, do we want to render the Normal vectors as well?
506 527
 * <p>

Also available in: Unified diff