mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-10-03 13:30:16 +00:00
Fix a bug with glerminal_layer_scale that caused unintended behavior
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user