mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-03 06:01:29 +00:00
GUI: intro, part 1 - DO NOT USE
these builds are all about the intro so you will have to stand a boring splash screen for 7 seconds when I finish the intro your pain will be over
This commit is contained in:
parent
aa7e1da95e
commit
b8d7845644
2 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ SDL_Texture* FurnaceGUI::getTexture(FurnaceGUIImages image) {
|
|||
|
||||
if (img->tex==NULL) {
|
||||
img->tex=SDL_CreateTexture(sdlRend,SDL_PIXELFORMAT_ABGR8888,SDL_TEXTUREACCESS_STATIC,img->width,img->height);
|
||||
SDL_SetTextureBlendMode(img->tex,SDL_BLENDMODE_BLEND);
|
||||
if (img->tex==NULL) {
|
||||
logE("error while creating image %d texture! %s",(int)image,SDL_GetError());
|
||||
return NULL;
|
||||
|
|
|
@ -39,7 +39,7 @@ void FurnaceGUI::drawIntro() {
|
|||
|
||||
SDL_Texture* icon=getTexture(GUI_IMAGE_ICON);
|
||||
if (icon!=NULL) {
|
||||
dl->AddImage(icon,ImVec2(introPos*100,40),ImVec2(256+introPos*100,40+256));
|
||||
dl->AddImage(icon,ImVec2(introPos*100,40),ImVec2(1024+introPos*100,40+1024));
|
||||
} else {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue