OROCHI
 
Loading...
Searching...
No Matches
GxUnitHudImageRender.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_HUD_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_CLASS_NAME(GxUnitHudImageRender, GxUnit2DBase, "HUD描画画像")
26 // ClassBaseReference継承クラス用禁止宣言
28
29
30 //-------------------------------------------------------------
32 //-------------------------------------------------------------
34public:
37
39 void cleanup( void ) override;
40
42 //-------------------------------------------------------------
44 //-------------------------------------------------------------
46protected:
48 void setRenderTexture(GxRenderTexture* pRenderTexture) { GX_SET_CLASS_BASE_REFERENCE(_pRenderTexture, pRenderTexture); }
50 void setMaterial( GxPrimitiveMaterial& material ) const override;
52 void renderPrimitive( const GxRectF& rect, f32 posZ, f32 z, const GxPrimitiveMaterial& material, const GxVector2& rotateCenter ) override;
53
55 //-------------------------------------------------------------
57 //-------------------------------------------------------------
59protected:
61
63};
64
65GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
#define GX_SET_CLASS_BASE_REFERENCE(__DST__, __SRC__)
オブジェクト設定(参照カウンタを使用する場合)
Definition GxBase.h:318
テクスチャクラス
Definition GxRenderTexture.h:19
2D基礎ユニットクラス
Definition GxUnit2DBase.h:24
HUD描画画像ユニット
Definition GxUnitHudImageRender.h:18
GxRenderTexture * _pRenderTexture
描画テクスチャ
Definition GxUnitHudImageRender.h:60
void setRenderTexture(GxRenderTexture *pRenderTexture)
描画テクスチャを設定
Definition GxUnitHudImageRender.h:48
プリミティブマテリアル
Definition GxPrimitive.h:103
実数矩形
Definition GxStruct.h:1100
2次元ベクトル
Definition GxVector.h:34