mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-29 22:02:25 +00:00
22 lines
478 B
C++
22 lines
478 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <memory>
|
|
|
|
#include "Layer.h"
|
|
|
|
class ZoomLayer : public Layer {
|
|
public:
|
|
ZoomLayer(int64_t seedMixup, std::shared_ptr<Layer> parent);
|
|
|
|
virtual std::vector<int> getArea(int xo, int yo, int w, int h);
|
|
|
|
protected:
|
|
int random(int a, int b);
|
|
int random(int a, int b, int c, int d);
|
|
|
|
public:
|
|
static std::shared_ptr<Layer> zoom(int64_t seed, std::shared_ptr<Layer> sup,
|
|
int count);
|
|
}; |