27 lines
538 B
C++
27 lines
538 B
C++
#pragma once
|
|
|
|
#include "GrpBase.h"
|
|
|
|
class CGraphicDib;
|
|
|
|
class CBlockTexture : public CGraphicBase
|
|
{
|
|
public:
|
|
CBlockTexture();
|
|
virtual ~CBlockTexture();
|
|
|
|
bool Create(CGraphicDib * pDIB, const RECT & c_rRect, DWORD dwWidth, DWORD dwHeight);
|
|
void SetClipRect(const RECT & c_rRect);
|
|
void Render(int ix, int iy);
|
|
void InvalidateRect(const RECT & c_rsrcRect);
|
|
|
|
protected:
|
|
CGraphicDib * m_pDIB;
|
|
RECT m_rect;
|
|
RECT m_clipRect;
|
|
BOOL m_bClipEnable;
|
|
DWORD m_dwWidth;
|
|
DWORD m_dwHeight;
|
|
LPDIRECT3DTEXTURE8 m_lpd3dTexture;
|
|
};
|