comparison Engine/Graphics/Render.cpp @ 2524:c7264ab7132f

Main menu rendered using d3d11
author a.parshin
date Fri, 10 Oct 2014 17:42:05 +0300
parents c532d5242055
children 4cc81f981afb
comparison
equal deleted inserted replaced
2523:c532d5242055 2524:c7264ab7132f
6001 unsigned __int16 *v14; // eax@19 6001 unsigned __int16 *v14; // eax@19
6002 DWORD v15; // edx@20 6002 DWORD v15; // edx@20
6003 stru350 Dst; // [sp+Ch] [bp-F8h]@12 6003 stru350 Dst; // [sp+Ch] [bp-F8h]@12
6004 6004
6005 HWLTexture* pHWLTexture = pD3DBitmaps.LoadTexture(pName, bMipMaps); 6005 HWLTexture* pHWLTexture = pD3DBitmaps.LoadTexture(pName, bMipMaps);
6006 if ( pHWLTexture ) 6006 if (!pHWLTexture)
6007 { 6007 return false;
6008
6008 bMipMaps = !strncmp(pName, "HDWTR", 5); 6009 bMipMaps = !strncmp(pName, "HDWTR", 5);
6009 if ( !pRenderD3D->CreateTexture(pHWLTexture->uWidth, pHWLTexture->uHeight, pOutSurface, pOutTexture, true, 6010 if ( !pRenderD3D->CreateTexture(pHWLTexture->uWidth, pHWLTexture->uHeight, pOutSurface, pOutTexture, true,
6010 bMipMaps, uMinDeviceTextureDim) ) 6011 bMipMaps, uMinDeviceTextureDim) )
6011 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0); 6012 Error("HiScreen16::LoadTexture - D3Drend->CreateTexture() failed: %x", 0);
6012 if (bMipMaps) 6013 if (bMipMaps)
6081 } 6082 }
6082 } 6083 }
6083 delete [] pHWLTexture->pPixels; 6084 delete [] pHWLTexture->pPixels;
6084 delete pHWLTexture; 6085 delete pHWLTexture;
6085 return true; 6086 return true;
6086 } 6087
6087 return false;
6088 } 6088 }
6089 6089
6090 //----- (004A5048) -------------------------------------------------------- 6090 //----- (004A5048) --------------------------------------------------------
6091 bool Render::MoveSpriteToDevice( Sprite *pSprite ) 6091 bool Render::MoveSpriteToDevice( Sprite *pSprite )
6092 { 6092 {
6366 } 6366 }
6367 }*/ 6367 }*/
6368 } 6368 }
6369 6369
6370 //----- (004A5B81) -------------------------------------------------------- 6370 //----- (004A5B81) --------------------------------------------------------
6371 void Render::SetTextureClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW) 6371 void Render::SetUIClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW)
6372 { 6372 {
6373 this->bClip = 1; 6373 this->bClip = 1;
6374 this->uClipX = uX; 6374 this->uClipX = uX;
6375 this->uClipY = uY; 6375 this->uClipY = uY;
6376 this->uClipZ = uZ; 6376 this->uClipZ = uZ;
6377 this->uClipW = uW; 6377 this->uClipW = uW;
6378 } 6378 }
6379 6379
6380 //----- (004A5BB6) -------------------------------------------------------- 6380 //----- (004A5BB6) --------------------------------------------------------
6381 void Render::ResetTextureClipRect() 6381 void Render::ResetUIClipRect()
6382 { 6382 {
6383 this->bClip = 1; 6383 this->bClip = 1;
6384 this->uClipX = 0; 6384 this->uClipX = 0;
6385 this->uClipY = 0; 6385 this->uClipY = 0;
6386 this->uClipZ = window->GetWidth(); 6386 this->uClipZ = window->GetWidth();
7473 } 7473 }
7474 } 7474 }
7475 } 7475 }
7476 7476
7477 //----- (004A6274) -------------------------------------------------------- 7477 //----- (004A6274) --------------------------------------------------------
7478 void Render::DrawTextureTransparent(unsigned int uX, unsigned int uY, Texture *pTexture) 7478 void Render::DrawTextureIndexedAlpha(unsigned int uX, unsigned int uY, Texture *pTexture)
7479 { 7479 {
7480 int uHeight; // ebx@4 7480 int uHeight; // ebx@4
7481 unsigned int v11; // edx@9 7481 unsigned int v11; // edx@9
7482 unsigned int v12; // esi@12 7482 unsigned int v12; // esi@12
7483 unsigned int v13; // esi@15 7483 unsigned int v13; // esi@15