Perlin Noise Terrain Generator
A Program to Generate Terrain from Perlin Noise with Exponentially Distributed Gradient Magnitude
Main Page
Files
File List
File Members
All
Files
Functions
Variables
Macros
Pages
defines.h
Go to the documentation of this file.
1
2
3
4
// Copyright Ian Parberry, April 2014.
5
//
6
// This file is made available under the GNU All-Permissive License.
7
//
8
// Copying and distribution of this file, with or without modification,
9
// are permitted in any medium without royalty provided the copyright
10
// notice and this notice are preserved. This file is offered as-is,
11
// without any warranty.
12
//
13
// Created by Ian Parberry, April 2014.
14
// Last updated May 7, 2014.
15
16
#pragma once
17
18
19
#if defined(_MSC_VER) //Windows Visual Studio
20
21
#include <windows.h>
//for timeGetTime() mainly
22
#include <conio.h>
//for _getch()
23
#pragma warning(disable : 4996) //disable annoying security warnings for stdio functions
24
25
#else//other OS
26
27
#define min(x,y) ((x)<(y)?(x):(y))
28
#define max(x,y) ((x)>(y)?(x):(y))
29
30
#include <time.h>
31
#define MAX_PATH 256
32
33
#endif
Generated on Mon Jun 2 2014 13:02:02 for Perlin Noise Terrain Generator by
1.8.2