aboutsummaryrefslogtreecommitdiff
path: root/textures
Commit message (Expand)AuthorAge
* Make freetype usage configureable by a settingPilzAdam2013-08-04
* Add texture pack selection to main menuNovatux2013-08-04
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
* Compress texturesDavid Gumberg2013-06-18
* Higher resolution menuheaderPilzAdam2013-05-25
* Add menu_header.png and remove old, unused texturesPilzAdam2013-05-20
* unkn own block -> unkn own nodekhonkhortisan2013-04-05
* Add cloud menu background by Krisi, configurable with the menu_clouds option.ShadowNinja2013-03-13
* Update menulogo.pngIlya Zhuravlev2013-03-10
* Support custom textures installed as /textures/all/*.pngPerttu Ahola2012-04-07
* Flatten share/ and user/ in the source and for the RUN_IN_PLACE buildPerttu Ahola2012-03-20
span class="hl com">with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef MAPGEN_HEADER #define MAPGEN_HEADER #include "common_irrlicht.h" #include "utility.h" // UniqueQueue struct BlockMakeData; class MapBlock; class ManualMapVoxelManipulator; class INodeDefManager; namespace mapgen { // Finds precise ground level at any position s16 find_ground_level_from_noise(u64 seed, v2s16 p2d, s16 precision); // Find out if block is completely underground bool block_is_underground(u64 seed, v3s16 blockpos); // Main map generation routine void make_block(BlockMakeData *data); // Add a tree void make_tree(ManualMapVoxelManipulator &vmanip, v3s16 p0, bool is_apple_tree, INodeDefManager *ndef); /* These are used by FarMesh */ bool get_have_sand(u64 seed, v2s16 p2d); double tree_amount_2d(u64 seed, v2s16 p); struct BlockMakeData { bool no_op; ManualMapVoxelManipulator *vmanip; // Destructor deletes u64 seed; v3s16 blockpos_min; v3s16 blockpos_max; v3s16 blockpos_requested; UniqueQueue<v3s16> transforming_liquid; INodeDefManager *nodedef; BlockMakeData(); ~BlockMakeData(); }; }; // namespace mapgen #endif