67 lines
1.6 KiB
C++
67 lines
1.6 KiB
C++
|
|
#pragma once
|
|
|
|
//#include "KUIControl.h"
|
|
#include "KPrimitiveSprite.h"
|
|
#include "KSmartPtr.h"
|
|
|
|
DECL_SPTR(KResSprite)
|
|
DECL_SPTR(K3DTexture)
|
|
|
|
class KUIControlQJTV : public KUIControl
|
|
{
|
|
public:
|
|
KUIControlQJTV();
|
|
~KUIControlQJTV();
|
|
|
|
virtual void Create(KUIWND_CREATE_ARG& CREATE_ARG);
|
|
virtual void Render(KViewportObject * pViewport, bool isFront = false );
|
|
|
|
virtual void OnPosChangeNofity(int XOffset, int YOffset);
|
|
|
|
virtual void OnAlphaChangeNotify(float fAlpha);
|
|
|
|
virtual DWORD OnMouseMessage(DWORD dwMessage, int x, int y);
|
|
|
|
void SetRenderTarget( K3DTexture* pTexture, int nWidth, int nHeight );
|
|
/// gpminsuk, 2009-01-28, QJTV컨트롤에서 XVID도 재생가능하게
|
|
void SetXVID(bool bXVID) { m_bXVID = bXVID; }
|
|
|
|
protected:
|
|
K3DTextureSPtr m_spRenderTarget;
|
|
KResSpriteSPtr m_spRes;
|
|
|
|
KSpritePrimitive m_prSprite;
|
|
bool m_bXVID; ///< gpminsuk, 2009-01-28, QJTV컨트롤에서 XVID도 재생가능하게
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
class KUIControlDynamicTexture : public KUIControl
|
|
{
|
|
public:
|
|
KUIControlDynamicTexture();
|
|
~KUIControlDynamicTexture();
|
|
|
|
virtual void Create(KUIWND_CREATE_ARG& CREATE_ARG);
|
|
virtual void Render(KViewportObject * pViewport, bool isFront = false );
|
|
|
|
virtual void OnPosChangeNofity(int XOffset, int YOffset);
|
|
|
|
virtual void OnAlphaChangeNotify(float fAlpha);
|
|
|
|
void SetRenderTarget( K3DTexture* pTexture, int nWidth, int nHeight );
|
|
|
|
protected:
|
|
K3DTextureSPtr m_spRenderTarget;
|
|
KResSpriteSPtr m_spRes;
|
|
|
|
KSpritePrimitive m_prSprite;
|
|
|
|
|
|
private:
|
|
}; |