mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49: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:
parent
e31344c68c
commit
d1e9bdc284
2 changed files with 6 additions and 6 deletions
|
@ -110,7 +110,7 @@ void Graphics::init(void)
|
|||
gameplayTexture = NULL;
|
||||
menuTexture = NULL;
|
||||
ghostTexture = NULL;
|
||||
tempTexture = NULL;
|
||||
menuoffTexture = NULL;
|
||||
backgroundTexture = NULL;
|
||||
foregroundTexture = NULL;
|
||||
towerbg = TowerBG();
|
||||
|
@ -188,7 +188,7 @@ void Graphics::create_buffers(void)
|
|||
gameplayTexture = CREATE_TEXTURE;
|
||||
menuTexture = CREATE_TEXTURE;
|
||||
ghostTexture = CREATE_TEXTURE;
|
||||
tempTexture = CREATE_TEXTURE;
|
||||
menuoffTexture = CREATE_TEXTURE;
|
||||
foregroundTexture = CREATE_TEXTURE;
|
||||
backgroundTexture = 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, menuTexture);
|
||||
VVV_freefunc(SDL_DestroyTexture, ghostTexture);
|
||||
VVV_freefunc(SDL_DestroyTexture, tempTexture);
|
||||
VVV_freefunc(SDL_DestroyTexture, menuoffTexture);
|
||||
VVV_freefunc(SDL_DestroyTexture, foregroundTexture);
|
||||
VVV_freefunc(SDL_DestroyTexture, backgroundTexture);
|
||||
}
|
||||
|
@ -3180,7 +3180,7 @@ void Graphics::screenshake(void)
|
|||
ApplyFilter();
|
||||
}
|
||||
|
||||
set_render_target(tempTexture);
|
||||
set_render_target(menuoffTexture);
|
||||
set_blendmode(SDL_BLENDMODE_NONE);
|
||||
clear();
|
||||
|
||||
|
@ -3202,7 +3202,7 @@ void Graphics::screenshake(void)
|
|||
set_blendmode(SDL_BLENDMODE_NONE);
|
||||
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)
|
||||
|
|
|
@ -308,7 +308,7 @@ public:
|
|||
bool notextoutline;
|
||||
|
||||
SDL_Texture* gameTexture;
|
||||
SDL_Texture* tempTexture;
|
||||
SDL_Texture* menuoffTexture;
|
||||
SDL_Texture* gameplayTexture;
|
||||
SDL_Texture* menuTexture;
|
||||
SDL_Texture* ghostTexture;
|
||||
|
|
Loading…
Reference in a new issue