diff options
| author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-22 16:16:27 +0100 | 
|---|---|---|
| committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-22 16:16:27 +0100 | 
| commit | 4ce924b1b1322ee4da3ba50d6da856ad13a2190b (patch) | |
| tree | fdb411aa1a79dd6f7e16bdc145607ca8813b118c /src/crepe/api/Sprite.h | |
| parent | 385f19a8c896ec126c569f1e5337d6d370d20517 (diff) | |
working scaling image with scaling world to screen
Diffstat (limited to 'src/crepe/api/Sprite.h')
| -rw-r--r-- | src/crepe/api/Sprite.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index 74a55d4..66599c9 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -1,6 +1,7 @@  #pragma once  #include <memory> +#include <sys/types.h>  #include "../Component.h" @@ -62,6 +63,13 @@ public:  	//! Order within the sorting layer  	uint8_t order_in_layer = 0; +	//! width in world units +	int width = 0; +	//! height in world units +	int height = 0; + +	const double aspect_ratio; +  public:  	/**  	 * \brief Gets the maximum number of instances allowed for this sprite. |