mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 15:32:19 +03: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:
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user