AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
#pragma once
|
||||
|
||||
#include "GrpImage.h"
|
||||
#include "GrpIndexBuffer.h"
|
||||
#include "GrpVertexBufferDynamic.h"
|
||||
#include "Pool.h"
|
||||
|
||||
class CGraphicImageInstance
|
||||
{
|
||||
public:
|
||||
void LeftRightReverse();
|
||||
protected:
|
||||
bool m_bLeftRightReverse;
|
||||
|
||||
public:
|
||||
static DWORD Type();
|
||||
BOOL IsType(DWORD dwType);
|
||||
|
||||
public:
|
||||
CGraphicImageInstance();
|
||||
virtual ~CGraphicImageInstance();
|
||||
|
||||
void Destroy();
|
||||
|
||||
void Render();
|
||||
|
||||
void SetDiffuseColor(float fr, float fg, float fb, float fa);
|
||||
void SetScale(float fx, float fy);
|
||||
void SetPosition(float fx, float fy);
|
||||
|
||||
void SetImagePointer(CGraphicImage* pImage);
|
||||
void ReloadImagePointer(CGraphicImage* pImage);
|
||||
bool IsEmpty() const;
|
||||
|
||||
int GetWidth();
|
||||
int GetHeight();
|
||||
#ifdef dracaryS_DUNGEON_LIB
|
||||
void RenderCoolTime(float fCoolTime);
|
||||
virtual void OnRenderCoolTime(float fCoolTime);
|
||||
#endif
|
||||
CGraphicTexture * GetTexturePointer();
|
||||
const CGraphicTexture & GetTextureReference() const;
|
||||
CGraphicImage * GetGraphicImagePointer();
|
||||
|
||||
bool operator == (const CGraphicImageInstance & rhs) const;
|
||||
|
||||
protected:
|
||||
void Initialize();
|
||||
|
||||
virtual void OnRender();
|
||||
virtual void OnSetImagePointer();
|
||||
|
||||
virtual BOOL OnIsType(DWORD dwType);
|
||||
|
||||
protected:
|
||||
D3DXCOLOR m_DiffuseColor;
|
||||
D3DXVECTOR2 m_v2Position;
|
||||
D3DXVECTOR2 m_v2Scale;
|
||||
float m_vScale;
|
||||
|
||||
CGraphicImage::TRef m_roImage;
|
||||
|
||||
public:
|
||||
static void CreateSystem(UINT uCapacity);
|
||||
static void DestroySystem();
|
||||
|
||||
static CGraphicImageInstance* New();
|
||||
static void Delete(CGraphicImageInstance* pkImgInst);
|
||||
|
||||
static CDynamicPool<CGraphicImageInstance> ms_kPool;
|
||||
};
|
||||
Reference in New Issue
Block a user