Revision 6c3259ce
Added by Leszek Koltunski 5 months ago
| src/main/java/org/distorted/library/mesh/MeshFile.kt | ||
|---|---|---|
| 30 | 30 |
*/ |
| 31 | 31 |
class MeshFile : MeshBase |
| 32 | 32 |
{
|
| 33 |
@JvmField var numBytes: Int = 0 // number of bytes read from the mesh file.
|
|
| 33 |
var numBytes: Int = 0 // number of bytes read from the mesh file. |
|
| 34 | 34 |
|
| 35 | 35 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 36 | 36 |
/** |
| 37 | 37 |
* Read mesh description from a file. |
| 38 | 38 |
* |
| 39 |
* |
|
| 40 | 39 |
* File format: as written by MeshBase.write(). |
| 41 | 40 |
*/ |
| 42 |
constructor(stream: DataInputStream?) : super()
|
|
| 41 |
constructor(stream: DataInputStream) : super() |
|
| 43 | 42 |
{
|
| 44 |
numBytes = read(stream!!)
|
|
| 43 |
numBytes = read(stream) |
|
| 45 | 44 |
} |
| 46 | 45 |
|
| 47 | 46 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
make it possible to compile distorted-examples with both master and kotlin-transition branches.