AVA2 cross-platform client parity baseline
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "GrpRenderTargetTexture.h"
|
||||
|
||||
class CInstanceBase;
|
||||
class CGraphicImageInstance;
|
||||
|
||||
class CRenderTarget
|
||||
{
|
||||
using TCharacterInstanceMap = std::map<DWORD, CInstanceBase*>;
|
||||
|
||||
public:
|
||||
CRenderTarget(DWORD width, DWORD height);
|
||||
~CRenderTarget();
|
||||
|
||||
|
||||
void SetVisibility(bool isShow);
|
||||
void RenderTexture() const;
|
||||
void SetRenderingRect(RECT* rect) const;
|
||||
|
||||
void SelectModel(DWORD index);
|
||||
bool CreateBackground(const char* imgPath, DWORD width, DWORD height);
|
||||
void RenderBackground() const;
|
||||
void UpdateModel();
|
||||
void DeformModel() const;
|
||||
void RenderModel() const;
|
||||
|
||||
void CreateTextures() const;
|
||||
void ReleaseTextures() const;
|
||||
|
||||
void ChangeWeapon(DWORD Weapon);
|
||||
void ChangeArmor(DWORD Armor);
|
||||
void ChangeHair(DWORD Hair);
|
||||
void ChangeAcce(DWORD Acce);
|
||||
void SetLoopMotion(WORD wMotion);
|
||||
|
||||
void SetShiningWeapon(DWORD Shining);
|
||||
void SetShiningArmor(DWORD Shining);
|
||||
|
||||
void SetZoom(float zoom);
|
||||
void SetPosition(float position);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
std::unique_ptr<CInstanceBase> m_pModel;
|
||||
std::unique_ptr<CGraphicImageInstance> m_background;
|
||||
std::unique_ptr<CGraphicRenderTargetTexture> m_renderTargetTexture;
|
||||
float m_modelRotation;
|
||||
bool m_visible;
|
||||
float m_modelZoom;
|
||||
float m_modelPosition;
|
||||
};
|
||||
Reference in New Issue
Block a user