leistungsnachweis-dingo
Public Member Functions | Public Attributes | List of all members
Chunk Struct Reference

#include <Chunk.h>

Public Member Functions

 Chunk (u8 x, u8 y, std::vector< Area *> areas, ChunkType type, Area *def)
 
void calculate ()
 
void renderToPGM (std::string const &filename)
 

Public Attributes

float values [CHUNK_SIZE *CHUNK_SIZE]
 
u32 x
 
u32 y
 
Areaarea
 
ChunkType type
 

Detailed Description

A chunk holds the values that will be rendered into our 3D model. Chunks live within Areas and use their randomly generated parameters to calculate the perlin noise values.

Author
VM Ware
Date
19.06.2018

The documentation for this struct was generated from the following files: