Rename Sun to circle
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include <vector>
|
||||
|
||||
#include "canvas/Sun.hpp"
|
||||
#include "values/Dna.hpp"
|
||||
|
||||
#include <raylib.h>
|
||||
@@ -25,8 +24,6 @@ private:
|
||||
uint128 mountenSeed;
|
||||
uint128 starSeed;
|
||||
|
||||
Sun sun;
|
||||
|
||||
int canvasSize = 0;
|
||||
|
||||
constexpr static size_t numOfStarts = 150;
|
||||
|
26
inc/canvas/Circle.hpp
Normal file
26
inc/canvas/Circle.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <raylib.h>
|
||||
|
||||
class Circle
|
||||
{
|
||||
public:
|
||||
static void init();
|
||||
static void deinit();
|
||||
static void setColor(Color color);
|
||||
static void setSoftEdge(bool soft);
|
||||
static void draw(float x, float y, float size);
|
||||
|
||||
Circle() = delete;
|
||||
|
||||
private:
|
||||
static const int sizeTexute = 250;
|
||||
static RenderTexture2D target;
|
||||
static Shader shader;
|
||||
|
||||
static float radius;
|
||||
static float start_transperency;
|
||||
static float c[3];
|
||||
|
||||
static int radius_loc;
|
||||
static int start_transperency_loc;
|
||||
static int colorLoc;
|
||||
};
|
@@ -1,26 +0,0 @@
|
||||
#include <raylib.h>
|
||||
|
||||
class Sun
|
||||
{
|
||||
public:
|
||||
Sun() = default;
|
||||
~Sun() = default;
|
||||
void init();
|
||||
void deinit();
|
||||
void setColor(Color color);
|
||||
void draw(float x, float y, float size);
|
||||
private:
|
||||
const int sizeTexute = 250;
|
||||
RenderTexture2D target = { 0 };
|
||||
Shader shader = { 0 };
|
||||
|
||||
float sun_radius = 0.60f;
|
||||
float start_transperency = 0.40f;
|
||||
float c[3] = { 240.0f / 255.0f, 240.0f / 255.0f, 190.0f / 255.0f };
|
||||
|
||||
int sun_radius_loc = 0;
|
||||
int start_transperency_loc = 0;
|
||||
int colorLoc = 0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user