1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Rename tempTexture to menuoffTexture

I'm going to soon be creating an actually temporary texture, so having
two textures named "temp" would get confusing. This is also a good
chance to correct the name of this texture, because it's not really
temporary, but it's used for map menu animation rendering.
This commit is contained in:
Misa 2023-03-03 15:25:15 -08:00
parent e31344c68c
commit d1e9bdc284
2 changed files with 6 additions and 6 deletions

View file

@ -110,7 +110,7 @@ void Graphics::init(void)
gameplayTexture = NULL; gameplayTexture = NULL;
menuTexture = NULL; menuTexture = NULL;
ghostTexture = NULL; ghostTexture = NULL;
tempTexture = NULL; menuoffTexture = NULL;
backgroundTexture = NULL; backgroundTexture = NULL;
foregroundTexture = NULL; foregroundTexture = NULL;
towerbg = TowerBG(); towerbg = TowerBG();
@ -188,7 +188,7 @@ void Graphics::create_buffers(void)
gameplayTexture = CREATE_TEXTURE; gameplayTexture = CREATE_TEXTURE;
menuTexture = CREATE_TEXTURE; menuTexture = CREATE_TEXTURE;
ghostTexture = CREATE_TEXTURE; ghostTexture = CREATE_TEXTURE;
tempTexture = CREATE_TEXTURE; menuoffTexture = CREATE_TEXTURE;
foregroundTexture = CREATE_TEXTURE; foregroundTexture = CREATE_TEXTURE;
backgroundTexture = CREATE_SCROLL_TEXTURE; backgroundTexture = CREATE_SCROLL_TEXTURE;
towerbg.texture = CREATE_SCROLL_TEXTURE; towerbg.texture = CREATE_SCROLL_TEXTURE;
@ -205,7 +205,7 @@ void Graphics::destroy_buffers(void)
VVV_freefunc(SDL_DestroyTexture, gameplayTexture); VVV_freefunc(SDL_DestroyTexture, gameplayTexture);
VVV_freefunc(SDL_DestroyTexture, menuTexture); VVV_freefunc(SDL_DestroyTexture, menuTexture);
VVV_freefunc(SDL_DestroyTexture, ghostTexture); VVV_freefunc(SDL_DestroyTexture, ghostTexture);
VVV_freefunc(SDL_DestroyTexture, tempTexture); VVV_freefunc(SDL_DestroyTexture, menuoffTexture);
VVV_freefunc(SDL_DestroyTexture, foregroundTexture); VVV_freefunc(SDL_DestroyTexture, foregroundTexture);
VVV_freefunc(SDL_DestroyTexture, backgroundTexture); VVV_freefunc(SDL_DestroyTexture, backgroundTexture);
} }
@ -3180,7 +3180,7 @@ void Graphics::screenshake(void)
ApplyFilter(); ApplyFilter();
} }
set_render_target(tempTexture); set_render_target(menuoffTexture);
set_blendmode(SDL_BLENDMODE_NONE); set_blendmode(SDL_BLENDMODE_NONE);
clear(); clear();
@ -3202,7 +3202,7 @@ void Graphics::screenshake(void)
set_blendmode(SDL_BLENDMODE_NONE); set_blendmode(SDL_BLENDMODE_NONE);
clear(); clear();
copy_texture(tempTexture, NULL, NULL, 0, NULL, flipmode ? SDL_FLIP_VERTICAL : SDL_FLIP_NONE); copy_texture(menuoffTexture, NULL, NULL, 0, NULL, flipmode ? SDL_FLIP_VERTICAL : SDL_FLIP_NONE);
} }
void Graphics::updatescreenshake(void) void Graphics::updatescreenshake(void)

View file

@ -308,7 +308,7 @@ public:
bool notextoutline; bool notextoutline;
SDL_Texture* gameTexture; SDL_Texture* gameTexture;
SDL_Texture* tempTexture; SDL_Texture* menuoffTexture;
SDL_Texture* gameplayTexture; SDL_Texture* gameplayTexture;
SDL_Texture* menuTexture; SDL_Texture* menuTexture;
SDL_Texture* ghostTexture; SDL_Texture* ghostTexture;