Remove rotating frame

This commit is contained in:
2024-12-25 00:12:31 +01:00
parent 131b4e356f
commit 937f582b47
5 changed files with 16 additions and 70 deletions

View File

@@ -13,18 +13,11 @@ public:
void deinit();
private:
int pos = 0;
int screenWidth, screenHeight;
Canvas canvas;
std::array<RenderTexture2D, 2> canvasTexure = {0};
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;
RenderTexture2D canvasTexure = {0};
Rectangle dest;
Dna dna = {0};
Vector2 mouseStart;
float len;
float ofset;
bool validHit = false;
};

View File

@@ -1,7 +1,4 @@
#include <raylib.h>
Color ColorLerp(Color c1, Color c2, float amount);
Color ColorAdd(Color c, int add);
Vector2 CalculateVector(float rotation, float offSet, float len);
void drawTexureWithRotation(RenderTexture2D &target, Rectangle &dest, float rotation);
Color ColorAdd(Color c, int add);

View File

@@ -26,7 +26,7 @@ void main()\
}\
}";
const char shaders_sun_330_fs[] = {
unsigned char shaders_sun_330_fs[] = {
0x23, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x33, 0x33, 0x30,
0x0a, 0x0a, 0x69, 0x6e, 0x20, 0x76, 0x65, 0x63, 0x32, 0x20, 0x66, 0x72,
0x61, 0x67, 0x54, 0x65, 0x78, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x3b, 0x0a,