aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Synth.cpp
blob: c6e926e57e658cf175958b8835dac86388ef1d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "stdafx.h"
#include "Synth.h"

doubleArray Synth::create(int width, int height)
{
    doubleArray result = doubleArray(width * height);
    for (int y = 0; y < height; y++)
    {
        for (int x = 0; x < width; x++)
        {
            result[x + y * width] = getValue(x, y);
        }
    }
    return result;
}