mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-12-01 05:00:05 +00:00
Update example, lower cell scale
This commit is contained in:
@@ -33,24 +33,24 @@ void glerminal_flush();
|
||||
|
||||
/**
|
||||
* @brief Set a cell's sprite
|
||||
* @param x position of the cell in the range [0, 32)
|
||||
* @param y position of the cell in the range [0, 20)
|
||||
* @param x position of the cell in the range [0, 40)
|
||||
* @param y position of the cell in the range [0, 25)
|
||||
* @param layer layer of the cell in the range [0, 8)
|
||||
* @param sprite sprite's index in the range [0, 256)
|
||||
*/
|
||||
void glerminal_set(unsigned char x, unsigned char y, unsigned char layer, unsigned char sprite);
|
||||
/**
|
||||
* @brief Get a cell's sprite
|
||||
* @param x position of the cell in the range [0, 32)
|
||||
* @param y position of the cell in the range [0, 20)
|
||||
* @param x position of the cell in the range [0, 40)
|
||||
* @param y position of the cell in the range [0, 25)
|
||||
* @param layer layer of the cell in the range [0, 8)
|
||||
* @return sprite index currently assigned to the cell
|
||||
*/
|
||||
unsigned char glerminal_get(unsigned char x, unsigned char y, unsigned char layer);
|
||||
/**
|
||||
* @brief Set a cell's offset
|
||||
* @param x position of the cell in the range [0, 32)
|
||||
* @param y position of the cell in the range [0, 20)
|
||||
* @param x position of the cell in the range [0, 40)
|
||||
* @param y position of the cell in the range [0, 25)
|
||||
* @param layer layer of the cell in the range [0, 8)
|
||||
* @param x_offset offset of the cell on the x axis in the range [-128, 127], where 0 is no offset
|
||||
* @param y_offset offset of the cell on the y axis in the range [-128, 127], where 0 is no offset
|
||||
|
||||
Reference in New Issue
Block a user