Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
Infinity::Types::Procedural Namespace Reference

Classes

struct  Chunk
 Fundamental unit of spatial partitioning for procedural world generation. More...
 
class  Landscape
 Renderable terrain representation with heightmap and material distribution data. More...
 
class  Noise
 Configurable procedural noise generator powered by FastNoise2. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const Chunk &v)
 Stream output operator for Chunk.
 
std::istream & operator>> (std::istream &in, Chunk &v)
 Stream input operator for Chunk.
 

Function Documentation

◆ operator<<()

std::ostream & Infinity::Types::Procedural::operator<< ( std::ostream &  out,
const Chunk v 
)
inline

Stream output operator for Chunk.

Writes the chunk to an output stream in the format: "id volume"

Parameters
outOutput stream.
vChunk to output.
Returns
Reference to the output stream.

◆ operator>>()

std::istream & Infinity::Types::Procedural::operator>> ( std::istream &  in,
Chunk v 
)
inline

Stream input operator for Chunk.

Reads a chunk from an input stream in the format: "id volume"

Parameters
inInput stream.
vChunk to read into.
Returns
Reference to the input stream.