trying to compile

This commit is contained in:
Ilusha 2024-03-17 11:00:10 +03:00 committed by Ilya Shurupov
parent f8c38a8a37
commit 2455f90550
19 changed files with 999 additions and 1890 deletions

View file

@ -0,0 +1,29 @@
#pragma once
#include "Buffer2D.hpp"
#include "Color.hpp"
#include "Vec.hpp"
namespace tp {
class RenderTexture {
public:
RenderTexture();
~RenderTexture();
uint4 getid();
void update(const Buffer2D<RGBA>& buff);
void draw(const uint4& out = 0);
public:
static void init();
static void deinit();
static void draw_texture(uint4 out, uint4 in);
static uint4 get_tex(const char* TexId);
static void drawCurcle(Vec2F pos, double radius, RGBA col);
private:
uint4 id;
};
};