mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-12-08 22:36:34 +01:00
initial import, >900commits predate this
This commit is contained in:
17
framework/opengl_primitives/src/mm/opengl/spritesheet.hpp
Normal file
17
framework/opengl_primitives/src/mm/opengl/spritesheet.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user