Draw background as sprite

This commit is contained in:
2025-05-24 21:25:48 +02:00
parent dd287dc667
commit 8f64c95dbd
3 changed files with 36 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "assets.hpp"
#include "util.hpp"
#include <SDL3/SDL.h>
#include <cstdint>
@@ -9,4 +10,5 @@
struct Sprite {
Texture const *texture;
uint16_t texture_atlas_index;
std::optional<Vec2> custom_size;
};