Fix a bug with glerminal_layer_scale that caused unintended behavior

This commit is contained in:
Shylie
2024-05-23 10:53:07 -04:00
parent c89563338a
commit 17ea6a7f0a
9 changed files with 164 additions and 55 deletions

View File

@@ -6,6 +6,13 @@ extern "C"
{
#endif
enum
{
GRID_WIDTH = 40,
GRID_HEIGHT = 25,
LAYER_COUNT = 64
};
typedef void (*glerminal_init_cb)();
typedef void (*glerminal_main_cb)(float dt);
@@ -60,8 +67,18 @@ void glerminal_layer_color(unsigned char layer, unsigned int color);
*/
void glerminal_layer_scale(unsigned char layer, float scale);
/**
* @brief Load sprites from a png file
* @param filename Name of the png file
*/
void glerminal_load_sprites_file(const char* filename);
/**
* @brief Load sprites from memory
* @param width width of the atlas in sprites
* @param height height of the atlas in sprites
* @param buffer the in-memory atlas
*/
void glerminal_load_sprites_buffer(unsigned char width, unsigned char height, const unsigned int* buffer);
#ifdef __cplusplus