working on sprite config, kinda scared I'm f***ing everything up :)
This commit is contained in:
parent
da2be7780b
commit
8845cf78e0
7 changed files with 149 additions and 55 deletions
|
|
@ -91,7 +91,9 @@ void ARC_Sprite_SetOrigin(ARC_Sprite *sprite, ARC_FPoint origin){
|
|||
|
||||
void ARC_Sprite_SetOpacity(ARC_Sprite *sprite, float opacity){
|
||||
sprite->opacity = opacity;
|
||||
SDL_SetTextureAlphaMod((SDL_Texture *)sprite->spritesheet->texture, sprite->opacity);
|
||||
if(sprite->spritesheet != NULL){
|
||||
SDL_SetTextureAlphaMod((SDL_Texture *)sprite->spritesheet->texture, sprite->opacity);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t ARC_Sprite_GetFrameIndex(ARC_Sprite *sprite){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue