Meson build system

This commit is contained in:
Rendo 2026-08-16 02:40:59 +05:00
commit e0606f89d5
16 changed files with 53 additions and 38 deletions

21
include/atlas.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef ATLAS_H
#define ATLAS_H
#include <raylib.h>
class TextureAtlas {
public:
TextureAtlas(Texture2D* texture, int offset_x, int offset_y, int width, int height);
TextureAtlas();
Rectangle rect_view(int x,int y, int width, int height) const; // Get a view into texture
Rectangle full_view() const;
const Texture2D get_texture() const;
private:
int offset_x = 0;
int offset_y = 0;
int width = 0;
int height = 0;
Texture2D* texture;
};
#endif