C# Class Universe.Modules.Terrain.FileLoaders.Terragen

Terragen File Format Loader Built from specification at http://www.planetside.co.uk/terragen/dev/tgterrain.html
Inheritance: ITerrainLoader
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Méthode Description
LoadFile ( string filename, IScene scene ) : ITerrainChannel
LoadFile ( string filename, IScene scene, int offsetX, int offsetY, int fileWidth, int fileHeight, int sectionWidth, int sectionHeight ) : ITerrainChannel
LoadStream ( Stream s, IScene scene ) : ITerrainChannel
SaveFile ( string filename, ITerrainChannel map ) : void
SaveStream ( Stream stream, ITerrainChannel map ) : void
ToString ( ) : string

Private Methods

Méthode Description
ToLittleEndian ( float number ) : byte[]

Terragen SCAL floats need to be written Intel ordered regardless of big or little Endian system

Method Details

LoadFile() public méthode

public LoadFile ( string filename, IScene scene ) : ITerrainChannel
filename string
scene IScene
Résultat ITerrainChannel

LoadFile() public méthode

public LoadFile ( string filename, IScene scene, int offsetX, int offsetY, int fileWidth, int fileHeight, int sectionWidth, int sectionHeight ) : ITerrainChannel
filename string
scene IScene
offsetX int
offsetY int
fileWidth int
fileHeight int
sectionWidth int
sectionHeight int
Résultat ITerrainChannel

LoadStream() public méthode

public LoadStream ( Stream s, IScene scene ) : ITerrainChannel
s Stream
scene IScene
Résultat ITerrainChannel

SaveFile() public méthode

public SaveFile ( string filename, ITerrainChannel map ) : void
filename string
map ITerrainChannel
Résultat void

SaveStream() public méthode

public SaveStream ( Stream stream, ITerrainChannel map ) : void
stream Stream
map ITerrainChannel
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string