mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Implement CDXUTElement::SetTexture(...)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//--------------------------------------------------------------------------------------
|
||||
#include "dxstdafx.h"
|
||||
#include "DXUTgui.h"
|
||||
#include "DXUTsettingsDlg.h"
|
||||
#undef min // use __min instead
|
||||
#undef max // use __max instead
|
||||
|
||||
@@ -199,3 +200,17 @@ void DXUTBlendColor::Blend( UINT iState, float fElapsedTime, float fRate )
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void CDXUTElement::SetTexture( UINT iTexture, RECT* prcTexture, D3DCOLOR defaultTextureColor )
|
||||
{
|
||||
this->iTexture = iTexture;
|
||||
|
||||
if( prcTexture )
|
||||
rcTexture = *prcTexture;
|
||||
else
|
||||
SetRectEmpty( &rcTexture );
|
||||
|
||||
TextureColor.Init( defaultTextureColor );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ struct DXUTBlendColor
|
||||
class CDXUTElement
|
||||
{
|
||||
public:
|
||||
void SetTexture( UINT iTexture, RECT* prcTexture, D3DCOLOR defaultTextureColor = D3DCOLOR_ARGB(255, 255, 255, 255) );
|
||||
UINT iTexture; // Index of the texture for this Element
|
||||
UINT iFont; // Index of the font for this Element
|
||||
DWORD dwTextFormat; // The format argument to DrawText
|
||||
|
||||
Reference in New Issue
Block a user