module voxel.generators.flat

Contains the FlatGen svo generator.

Code Map

//! Contains the FlatGen svo generator.
module voxel.generators.flat;


//! Generates a flat surface on the Y plane.
struct FlatGen
{
public:
	enum Max;
	enum ColorLevels;


public:
	//! Generate a completely flat white surface.
	fn genYWhite(ib: InputBuffer, levels: u32) u32 { }
	//! Generate a completely flat colored surface.
	fn genYColored(ib: InputBuffer, levels: u32) u32 { }
}
struct FlatGen

Generates a flat surface on the Y plane.

fn genYWhite(ib: InputBuffer, levels: u32) u32

Generate a completely flat white surface.

fn genYColored(ib: InputBuffer, levels: u32) u32

Generate a completely flat colored surface.