Loading...
Searching...
No Matches
TextureSlicer.h
Go to the documentation of this file.
1//
2// Created by Dave Smith on 4/9/25.
3//
4
5#ifndef TEXTURESLICER_H
6#define TEXTURESLICER_H
7
8#include <SFML/Graphics.hpp>
10
11namespace ml
12{
39 {
40 public:
54 static ml::ImageRects getImageRects(const sf::Texture& texture, int rows, int cols);
55 };
56
57} // namespace ml
58
59#endif // TEXTURESLICER_H
A grid-indexed collection of sf::IntRect regions.
Definition ImageRects.h:37
Divides a texture into a uniform grid of sub-rectangles.
static ml::ImageRects getImageRects(const sf::Texture &texture, int rows, int cols)
Slice a texture into a rows × cols grid of equal rectangles.
Definition Component.h:18