Add BackGround
add stary night
This commit is contained in:
22
inc/BackGround.hpp
Normal file
22
inc/BackGround.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <vector>
|
||||
#include "raylib.h"
|
||||
|
||||
class BackGround
|
||||
{
|
||||
|
||||
public:
|
||||
BackGround() = default;
|
||||
~BackGround() = default;
|
||||
void init(int size);
|
||||
void newGen();
|
||||
|
||||
private:
|
||||
void starts();
|
||||
void mounten();
|
||||
void drawMounten(std::vector<float> &data, int line, int varience, Color color);
|
||||
|
||||
size_t numOfStarts = 150;
|
||||
Color starColor = WHITE;
|
||||
int size = 0;
|
||||
Texture2D texShapes = {1, 1, 1, 1, 7};
|
||||
};
|
@@ -1,4 +1,5 @@
|
||||
#include "raylib.h"
|
||||
#include "BackGround.hpp"
|
||||
#include "Tree.hpp"
|
||||
|
||||
class Canvas
|
||||
@@ -13,6 +14,7 @@ public:
|
||||
void deinit();
|
||||
|
||||
private:
|
||||
BackGround backGround;
|
||||
Tree tree;
|
||||
RenderTexture2D target = {0};
|
||||
};
|
||||
|
Reference in New Issue
Block a user