mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-01-10 23:16:52 +01:00
18 lines
268 B
C++
18 lines
268 B
C++
|
#pragma once
|
||
|
|
||
|
#include "./texture.hpp"
|
||
|
|
||
|
namespace MM::OpenGL {
|
||
|
|
||
|
// a SpriteSheet is a texture divided evenly into a Grid
|
||
|
struct SpriteSheet {
|
||
|
MM::OpenGL::Texture::handle tex = nullptr;
|
||
|
struct {
|
||
|
uint32_t x = 1;
|
||
|
uint32_t y = 1;
|
||
|
} tile_count;
|
||
|
};
|
||
|
|
||
|
} // MM::OpenGL
|
||
|
|